Fix tooltip in mini mode.

This commit is contained in:
Black Hat 2018-08-24 13:31:17 +08:00
parent cfa8043596
commit 3060dfa633
1 changed files with 5 additions and 3 deletions

View File

@ -124,8 +124,13 @@ Item {
AutoMouseArea { AutoMouseArea {
anchors.fill: parent anchors.fill: parent
hoverEnabled: MSettings.miniMode
onSecondaryClicked: Qt.createComponent("qrc:/qml/menu/RoomContextMenu.qml").createObject(this) onSecondaryClicked: Qt.createComponent("qrc:/qml/menu/RoomContextMenu.qml").createObject(this)
onPrimaryClicked: category === RoomType.Invited ? inviteDialog.open() : enteredRoom = currentRoom onPrimaryClicked: category === RoomType.Invited ? inviteDialog.open() : enteredRoom = currentRoom
ToolTip.visible: MSettings.miniMode && containsMouse
ToolTip.text: name
} }
Rectangle { Rectangle {
@ -175,9 +180,6 @@ Item {
} }
} }
} }
ToolTip.visible: MSettings.miniMode && hovered
ToolTip.text: name
} }
section.property: "display" section.property: "display"