Use long press on mobile for room list
This commit is contained in:
@@ -110,6 +110,7 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
id: roomLayout
|
id: roomLayout
|
||||||
spacing: Kirigami.Units.largeSpacing
|
spacing: Kirigami.Units.largeSpacing
|
||||||
@@ -118,7 +119,10 @@ Kirigami.ScrollablePage {
|
|||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onTapped: roomListContextMenu.createObject(roomLayout, {"room": currentRoom}).popup()
|
onTapped: roomListContextMenu.createObject(roomLayout, {"room": currentRoom}).popup()
|
||||||
|
}
|
||||||
|
|
||||||
|
TapHandler {
|
||||||
|
onLongPressed: roomListContextMenu.createObject(roomLayout, {"room": currentRoom}).popup()
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Avatar {
|
Kirigami.Avatar {
|
||||||
@@ -178,7 +182,7 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QQC2.Button {
|
QQC2.Button {
|
||||||
visible: roomListItem.hovered || Kirigami.Settings.isMobile
|
visible: roomListItem.hovered
|
||||||
Accessible.description: i18n("Configure room")
|
Accessible.description: i18n("Configure room")
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
id: optionAction
|
id: optionAction
|
||||||
|
|||||||
Reference in New Issue
Block a user