Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/ActionToolBarLayoutDetails.qml
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 46 | Item { | |||
---|---|---|---|---|---|
56 | property int display: Controls.Button.TextBesideIcon | 56 | property int display: Controls.Button.TextBesideIcon | ||
57 | property real spacing: Kirigami.Units.smallSpacing | 57 | property real spacing: Kirigami.Units.smallSpacing | ||
58 | property real leftPadding: 0 | 58 | property real leftPadding: 0 | ||
59 | property real rightPadding: 0 | 59 | property real rightPadding: 0 | ||
60 | 60 | | |||
61 | property real iconOnlyWidth: 0 | 61 | property real iconOnlyWidth: 0 | ||
62 | readonly property real iconLayoutWidth: width - rightPadding | 62 | readonly property real iconLayoutWidth: width - rightPadding | ||
63 | readonly property real fullLayoutWidth: iconLayoutWidth - iconOnlyWidth | 63 | readonly property real fullLayoutWidth: iconLayoutWidth - iconOnlyWidth | ||
64 | readonly property real maximumWidth: fullSizePlaceholderLayout.width + leftPadding + rightPadding | ||||
64 | 65 | | |||
65 | enabled: false | 66 | enabled: false | ||
66 | opacity: 0 // Cannot use visible: false because then relayout doesn't happen correctly | 67 | opacity: 0 // Cannot use visible: false because then relayout doesn't happen correctly | ||
67 | 68 | | |||
68 | function update() { | 69 | function update() { | ||
69 | var visible = [] | 70 | var visible = [] | ||
70 | var hidden = [] | 71 | var hidden = [] | ||
71 | var iconOnly = [] | 72 | var iconOnly = [] | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |