Skycoder42
7 years ago
No known key found for this signature in database
GPG Key ID: 8E01AD9EF0578D2B
2 changed files with
8 additions and
18 deletions
-
src/imports/mvvmquick/ActionButton.qml
-
src/imports/mvvmquick/RoundActionButton.qml
|
|
@ -33,17 +33,12 @@ ToolButton { |
|
|
|
icon.width: 24 |
|
|
|
icon.height: 24 |
|
|
|
|
|
|
|
ToolTip { |
|
|
|
id: _backToolTip |
|
|
|
text: _toolButton.toolTip |
|
|
|
} |
|
|
|
ToolTip.visible: pressed && _toolButton.toolTip != "" |
|
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval |
|
|
|
ToolTip.text: _toolButton.toolTip |
|
|
|
|
|
|
|
onPressAndHold: { |
|
|
|
if(_backToolTip.text !== "") { |
|
|
|
if(_toolButton.toolTip !== "") |
|
|
|
QuickPresenter.hapticLongPress(); |
|
|
|
_backToolTip.visible = true; |
|
|
|
} |
|
|
|
} |
|
|
|
onCanceled: _backToolTip.visible = false |
|
|
|
onReleased: _backToolTip.visible = false |
|
|
|
} |
|
|
|
|
|
@ -26,17 +26,12 @@ RoundButton { |
|
|
|
icon.width: 24 |
|
|
|
icon.height: 24 |
|
|
|
|
|
|
|
ToolTip { |
|
|
|
id: _backToolTip |
|
|
|
text: _roundButton.toolTip |
|
|
|
} |
|
|
|
ToolTip.visible: pressed && _roundButton.toolTip != "" |
|
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval |
|
|
|
ToolTip.text: _roundButton.toolTip |
|
|
|
|
|
|
|
onPressAndHold: { |
|
|
|
if(_backToolTip.text !== "") { |
|
|
|
if(_roundButton.toolTip !== "") |
|
|
|
QuickPresenter.hapticLongPress(); |
|
|
|
_backToolTip.visible = true; |
|
|
|
} |
|
|
|
} |
|
|
|
onCanceled: _backToolTip.visible = false |
|
|
|
onReleased: _backToolTip.visible = false |
|
|
|
} |
|
|
|