QtMvvm  1.0.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
ActionButton.qml
1 import QtQuick 2.10
2 import QtQuick.Controls 2.3
3 import de.skycoder42.QtMvvm.Quick 1.0
4 
14 ToolButton {
15  id: _toolButton
16 
26  property string toolTip: _toolButton.text
27 
28  display: AbstractButton.IconOnly
29 
30  implicitHeight: 48
31  implicitWidth: 48
32 
33  icon.width: 24
34  icon.height: 24
35 
36  ToolTip {
37  id: _backToolTip
38  text: _toolButton.toolTip
39  }
40 
41  onPressAndHold: {
42  if(_backToolTip.text !== "") {
44  _backToolTip.visible = true;
45  }
46  }
47  onCanceled: _backToolTip.visible = false
48  onReleased: _backToolTip.visible = false
49 }
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.