add option to open tooltips by pressing the mouse button

This commit is contained in:
Firmino Veras
2025-11-14 09:55:06 -03:00
parent 4b8f294a91
commit 2ccdf3b751
10 changed files with 34 additions and 15 deletions
@@ -15,7 +15,7 @@ MouseArea {
readonly property bool isLow: percentage <= Config.options.battery.low / 100
implicitHeight: batteryProgress.implicitHeight
hoverEnabled: true
hoverEnabled: !Config.options.bar.tooltips.clickToShow
ClippedProgressBar {
id: batteryProgress
@@ -9,7 +9,7 @@ MouseArea {
property bool alwaysShowAllResources: false
implicitHeight: columnLayout.implicitHeight
implicitWidth: columnLayout.implicitWidth
hoverEnabled: true
hoverEnabled: !Config.options.bar.tooltips.clickToShow
ColumnLayout {
id: columnLayout
@@ -33,7 +33,7 @@ Item {
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
hoverEnabled: !Config.options.bar.tooltips.clickToShow
acceptedButtons: Qt.NoButton
Bar.ClockWidgetPopup {
@@ -28,7 +28,7 @@ MouseArea {
}
acceptedButtons: Qt.MiddleButton | Qt.BackButton | Qt.ForwardButton | Qt.RightButton | Qt.LeftButton
hoverEnabled: true
hoverEnabled: !Config.options.bar.tooltips.clickToShow
onPressed: (event) => {
if (event.button === Qt.MiddleButton) {
activePlayer.togglePlaying();