Fix tooltips

This commit is contained in:
Bart De Vries 2023-10-17 14:16:02 +02:00
parent 91b5c09992
commit 1afb62c314
3 changed files with 9 additions and 9 deletions

View File

@ -226,7 +226,7 @@ FocusScope {
display: playerControlToolBar.tooNarrowChapter ? Controls.AbstractButton.IconOnly : Controls.AbstractButton.TextBesideIcon
visible: chapterAction.visible && !playerControlToolBar.tooNarrowOverflow
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Show chapter list")
}
@ -237,7 +237,7 @@ FocusScope {
display: playerControlToolBar.tooNarrowExtra ? Controls.AbstractButton.IconOnly : Controls.AbstractButton.TextBesideIcon
visible: infoAction.visible && !playerControlToolBar.tooNarrowOverflow
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Show episode info")
}
@ -248,7 +248,7 @@ FocusScope {
display: playerControlToolBar.tooNarrowExtra ? Controls.AbstractButton.IconOnly : Controls.AbstractButton.TextBesideIcon
visible: !playerControlToolBar.tooNarrowOverflow
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Open sleep timer settings")
}
@ -262,7 +262,7 @@ FocusScope {
enabled: AudioManager.PlaybackState != AudioManager.StoppedState && AudioManager.canPlay
checked: volumePopup.visible
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Open volume settings")
@ -294,7 +294,7 @@ FocusScope {
icon.name: AudioManager.muted ? "player-volume-muted" : "player-volume"
onClicked: AudioManager.muted = !AudioManager.muted
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Toggle mute")
@ -311,7 +311,7 @@ FocusScope {
visible: playerControlToolBar.tooNarrowOverflow
checked: overflowMenu.visible
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Show more")

View File

@ -233,9 +233,9 @@ Controls.ItemDelegate {
pageStack.push("qrc:/FeedDetailsPage.qml", {"feed": feed})
}
Controls.ToolTip.visible: hovered
Controls.ToolTip.text: feed.name
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.y: cardSize + cardMargin
Kirigami.MenuDialog {
id: actionOverlay

View File

@ -340,7 +340,7 @@ Kirigami.Page {
enabled: AudioManager.PlaybackState != AudioManager.StoppedState && AudioManager.canPlay
checked: volumePopup.visible
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Open volume settings")
@ -370,7 +370,7 @@ Kirigami.Page {
icon.name: AudioManager.muted ? "player-volume-muted" : "player-volume"
onClicked: AudioManager.muted = !AudioManager.muted
Controls.ToolTip.visible: parent.hovered
Controls.ToolTip.visible: hovered
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
Controls.ToolTip.text: i18nc("@action:button", "Toggle mute")