Changeset View
Changeset View
Standalone View
Standalone View
src/qml/FlatButtonWithToolTip.qml
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 26 | Button { | |||
---|---|---|---|---|---|
43 | } | 43 | } | ||
44 | 44 | | |||
45 | background: Rectangle { | 45 | background: Rectangle { | ||
46 | color: parent.pressed ? myPalette.highlight : "transparent" | 46 | color: parent.pressed ? myPalette.highlight : "transparent" | ||
47 | border.color: (parent.hovered || parent.activeFocus) ? myPalette.highlight : "transparent" | 47 | border.color: (parent.hovered || parent.activeFocus) ? myPalette.highlight : "transparent" | ||
48 | border.width: 1 | 48 | border.width: 1 | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | Accessible.onPressAction: onClicked | ||||
52 | | ||||
51 | ToolTip.visible: hovered | 53 | ToolTip.visible: hovered | ||
52 | ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval | 54 | ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval | ||
53 | ToolTip.text: flatButtonWithToolTip.action.text | 55 | ToolTip.text: flatButtonWithToolTip.action.text | ||
54 | } | 56 | } |