From 3060dfa633e9bb95f537087a5fa16c48ee074326 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Fri, 24 Aug 2018 13:31:17 +0800 Subject: [PATCH] Fix tooltip in mini mode. --- qml/form/RoomListForm.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qml/form/RoomListForm.qml b/qml/form/RoomListForm.qml index 6ba013f..668fa89 100644 --- a/qml/form/RoomListForm.qml +++ b/qml/form/RoomListForm.qml @@ -124,8 +124,13 @@ Item { AutoMouseArea { anchors.fill: parent + hoverEnabled: MSettings.miniMode + onSecondaryClicked: Qt.createComponent("qrc:/qml/menu/RoomContextMenu.qml").createObject(this) onPrimaryClicked: category === RoomType.Invited ? inviteDialog.open() : enteredRoom = currentRoom + + ToolTip.visible: MSettings.miniMode && containsMouse + ToolTip.text: name } Rectangle { @@ -175,9 +180,6 @@ Item { } } } - - ToolTip.visible: MSettings.miniMode && hovered - ToolTip.text: name } section.property: "display"