Add room header pane buttons tooltips

This commit is contained in:
miruka 2020-03-17 18:05:51 -04:00
parent f52ec09d83
commit 9981dfd682

View File

@ -21,9 +21,10 @@ Rectangle {
HButton { HButton {
id: goToMainPaneButton id: goToMainPaneButton
icon.name: "go-back-to-main-pane"
padded: false padded: false
visible: Layout.preferredWidth > 0 visible: Layout.preferredWidth > 0
icon.name: "go-back-to-main-pane"
toolTip.text: qsTr("Go back to main pane")
onClicked: mainUI.mainPane.toggleFocus() onClicked: mainUI.mainPane.toggleFocus()
@ -116,8 +117,9 @@ Rectangle {
HButton { HButton {
id: goToRoomPaneButton id: goToRoomPaneButton
padded: false padded: false
icon.name: "go-to-room-pane"
visible: goToMainPaneButton.visible visible: goToMainPaneButton.visible
icon.name: "go-to-room-pane"
toolTip.text: qsTr("Go to room pane")
onClicked: chat.roomPane.toggleFocus() onClicked: chat.roomPane.toggleFocus()