Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/PrivateActionToolButton.qml
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 54 | RowLayout { | |||
---|---|---|---|---|---|
55 | id: layout | 55 | id: layout | ||
56 | anchors.centerIn: parent | 56 | anchors.centerIn: parent | ||
57 | Icon { | 57 | Icon { | ||
58 | Layout.minimumWidth: 22 | 58 | Layout.minimumWidth: 22 | ||
59 | Layout.minimumHeight: 22 | 59 | Layout.minimumHeight: 22 | ||
60 | source: control.action ? control.action.iconName : "" | 60 | source: control.action ? control.action.iconName : "" | ||
61 | visible: control.action && control.action.iconName != "" | 61 | visible: control.action && control.action.iconName != "" | ||
62 | } | 62 | } | ||
63 | Label { | 63 | Controls.Label { | ||
64 | text: action ? action.text : "" | 64 | text: action ? action.text : "" | ||
65 | visible: control.showText | 65 | visible: control.showText | ||
66 | } | 66 | } | ||
67 | } | 67 | } | ||
68 | } | 68 | } | ||
69 | Controls.ToolTip { | 69 | Controls.ToolTip { | ||
70 | visible: control.hovered | 70 | visible: control.hovered | ||
71 | text: action ? (action.tooltip.length ? action.tooltip : action.text) : "" | 71 | text: action ? (action.tooltip.length ? action.tooltip : action.text) : "" | ||
72 | delay: 1000 | 72 | delay: 1000 | ||
73 | timeout: 5000 | 73 | timeout: 5000 | ||
74 | y: control.height | 74 | y: control.height | ||
75 | } | 75 | } | ||
76 | } | 76 | } |