Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/ActionButton.qml
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 41 | onClicked: { | |||
---|---|---|---|---|---|
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | 50 | | |||
51 | PlasmaComponents.ToolTip { | 51 | PlasmaComponents.ToolTip { | ||
52 | id: toolTip | 52 | id: toolTip | ||
53 | text: button.qAction ? button.qAction.text : "" | 53 | text: button.qAction ? button.qAction.text : "" | ||
54 | delay: 0 | 54 | delay: 0 | ||
55 | visible: button.hovered | 55 | visible: button.hovered && text.length > 0 | ||
56 | x: button.width | 56 | x: button.width | ||
57 | y: button.height/2 - height/2 | 57 | y: button.height/2 - height/2 | ||
58 | } | 58 | } | ||
59 | contentItem: ColumnLayout { | 59 | contentItem: ColumnLayout { | ||
60 | id: buttonColumn | 60 | id: buttonColumn | ||
61 | 61 | | |||
62 | PlasmaCore.SvgItem { | 62 | PlasmaCore.SvgItem { | ||
63 | id: icon | 63 | id: icon | ||
Show All 21 Lines |