From 408b9eb05781e825588b8d512c4bc017515aeafb Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 6 Dec 2020 17:41:33 +0100 Subject: [PATCH] Use long press on mobile for room list --- imports/NeoChat/Page/RoomListPage.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index 38b153a2a..9c53de680 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -110,6 +110,7 @@ Kirigami.ScrollablePage { } } + contentItem: RowLayout { id: roomLayout spacing: Kirigami.Units.largeSpacing @@ -118,7 +119,10 @@ Kirigami.ScrollablePage { TapHandler { acceptedButtons: Qt.RightButton onTapped: roomListContextMenu.createObject(roomLayout, {"room": currentRoom}).popup() + } + TapHandler { + onLongPressed: roomListContextMenu.createObject(roomLayout, {"room": currentRoom}).popup() } Kirigami.Avatar { @@ -178,7 +182,7 @@ Kirigami.ScrollablePage { } } QQC2.Button { - visible: roomListItem.hovered || Kirigami.Settings.isMobile + visible: roomListItem.hovered Accessible.description: i18n("Configure room") action: Kirigami.Action { id: optionAction