QtMvvm  1.1.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.1
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  ColorHelper {
37  id: helper
38  }
39  icon.color: helper.text
40 
41  ToolTip.visible: pressed && _toolButton.toolTip != ""
42  ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
43  ToolTip.text: _toolButton.toolTip
44 
45  onPressAndHold: {
46  if(_toolButton.toolTip !== "")
48  }
49 }
color text
The color to use for text.
Definition: ColorHelper.qml:52
A helper class to get style-dependant colors.
Definition: ColorHelper.qml:17
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.