mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Wrap the instantiated userLine components in a menu item
Get proper handling of hover and so on this way Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
2483d2cfc6
commit
aa9c2b45a6
1 changed files with 10 additions and 5 deletions
|
@ -303,12 +303,17 @@ ApplicationWindow {
|
|||
Instantiator {
|
||||
id: userLineInstantiator
|
||||
model: UserModel
|
||||
delegate: UserLine {
|
||||
onShowUserStatusSelector: {
|
||||
userStatusDrawer.openUserStatusDrawer(model.index);
|
||||
accountMenu.close();
|
||||
delegate: MenuItem {
|
||||
implicitHeight: instantiatedUserLine.height
|
||||
UserLine {
|
||||
id: instantiatedUserLine
|
||||
width: parent.width
|
||||
onShowUserStatusSelector: {
|
||||
userStatusDrawer.openUserStatusDrawer(model.index);
|
||||
accountMenu.close();
|
||||
}
|
||||
onClicked: UserModel.currentUserId = model.index;
|
||||
}
|
||||
onClicked: UserModel.currentUserId = model.index;
|
||||
}
|
||||
onObjectAdded: accountMenu.insertItem(index, object)
|
||||
onObjectRemoved: accountMenu.removeItem(object)
|
||||
|
|
Loading…
Reference in a new issue