Changeset View
Changeset View
Standalone View
Standalone View
src/controls/ActionToolBar.qml
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 34 | Item { | |||
---|---|---|---|---|---|
76 | * permitted values are: | 76 | * permitted values are: | ||
77 | * *ToolBar.Header: The toolbar is at the top, as a window or page header. | 77 | * *ToolBar.Header: The toolbar is at the top, as a window or page header. | ||
78 | * *ToolBar.Footer: The toolbar is at the bottom, as a window or page footer. | 78 | * *ToolBar.Footer: The toolbar is at the bottom, as a window or page footer. | ||
79 | */ | 79 | */ | ||
80 | property int position: parent && parent.hasOwnProperty("position") | 80 | property int position: parent && parent.hasOwnProperty("position") | ||
81 | ? parent.position | 81 | ? parent.position | ||
82 | : Controls.ToolBar.Header | 82 | : Controls.ToolBar.Header | ||
83 | 83 | | |||
84 | /** | ||||
85 | * The maximum width of the contents of this ToolBar. If the toolbar's width is larger than this value, empty space will | ||||
86 | * be added on the sides, according to the Alignment property. | ||||
87 | * | ||||
88 | * The value of this property is derived from the ToolBar's actions and their properties. | ||||
89 | */ | ||||
90 | readonly property alias maximumContentWidth: details.maximumWidth | ||||
91 | | ||||
84 | implicitHeight: actionsLayout.implicitHeight | 92 | implicitHeight: actionsLayout.implicitHeight | ||
85 | implicitWidth: actionsLayout.implicitWidth | 93 | implicitWidth: actionsLayout.implicitWidth | ||
86 | Layout.minimumWidth: moreButton.visible ? moreButton.implicitWidth : 0 | 94 | Layout.minimumWidth: moreButton.visible ? moreButton.implicitWidth : 0 | ||
87 | 95 | | |||
88 | RowLayout { | 96 | RowLayout { | ||
89 | id: actionsLayout | 97 | id: actionsLayout | ||
90 | anchors.fill: parent | 98 | anchors.fill: parent | ||
91 | spacing: 0 | 99 | spacing: 0 | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |