Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/ActionToolBarLayoutDetails.qml
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 108 | visible: { | |||
---|---|---|---|---|---|
113 | if (modelData.hasOwnProperty("displayHint") && | 113 | if (modelData.hasOwnProperty("displayHint") && | ||
114 | modelData.displayHintSet(Kirigami.Action.DisplayHint.AlwaysHide)) { | 114 | modelData.displayHintSet(Kirigami.Action.DisplayHint.AlwaysHide)) { | ||
115 | return false | 115 | return false | ||
116 | } | 116 | } | ||
117 | 117 | | |||
118 | return true | 118 | return true | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | property bool actionVisible: visible && (x + width < details.fullLayoutWidth) | 121 | property bool actionVisible: visible && (x + width <= details.fullLayoutWidth) | ||
122 | 122 | | |||
123 | onLoaded: { | 123 | onLoaded: { | ||
124 | if (sourceComponent == toolButtonDelegate) { | 124 | if (sourceComponent == toolButtonDelegate) { | ||
125 | item.kirigamiAction = modelData | 125 | item.kirigamiAction = modelData | ||
126 | } | 126 | } | ||
127 | } | 127 | } | ||
128 | } | 128 | } | ||
129 | } | 129 | } | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |