QtMvvm  1.0.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
RoundActionButton.qml
1 import QtQuick 2.10
2 import QtQuick.Controls 2.3
3 import de.skycoder42.QtMvvm.Quick 1.0
4 
14 RoundButton {
15  id: _roundButton
16 
18  property string toolTip: _roundButton.text
19 
20  display: AbstractButton.IconOnly
21  highlighted: true
22 
23  implicitHeight: 56 + padding
24  implicitWidth: 56 + padding
25 
26  icon.width: 24
27  icon.height: 24
28 
29  ToolTip {
30  id: _backToolTip
31  text: _roundButton.toolTip
32  }
33 
34  onPressAndHold: {
35  if(_backToolTip.text !== "") {
37  _backToolTip.visible = true;
38  }
39  }
40  onCanceled: _backToolTip.visible = false
41  onReleased: _backToolTip.visible = false
42 }
static void hapticLongPress()
Performs haptic feedback of a long press (Android only)
The QML import for the QtMvvmQuick QML module.
Definition: ActionButton.qml:4
A QML singleton to access common presenter methods globally.