Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/ComboBox.qml
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Line(s) | 205 | popup: T.Popup { | |||
---|---|---|---|---|---|
206 | y: controlRoot.height | 206 | y: controlRoot.height | ||
207 | width: Math.max(controlRoot.width, 150) | 207 | width: Math.max(controlRoot.width, 150) | ||
208 | implicitHeight: contentItem.implicitHeight | 208 | implicitHeight: contentItem.implicitHeight | ||
209 | topMargin: 6 | 209 | topMargin: 6 | ||
210 | bottomMargin: 6 | 210 | bottomMargin: 6 | ||
211 | Kirigami.Theme.colorSet: Kirigami.Theme.View | 211 | Kirigami.Theme.colorSet: Kirigami.Theme.View | ||
212 | Kirigami.Theme.inherit: controlRoot.Kirigami.Theme.inherit | 212 | Kirigami.Theme.inherit: controlRoot.Kirigami.Theme.inherit | ||
213 | modal: true | 213 | modal: true | ||
214 | dim: false | ||||
214 | closePolicy: Controls.Popup.CloseOnEscape | Controls.Popup.CloseOnPressOutside | 215 | closePolicy: Controls.Popup.CloseOnEscape | Controls.Popup.CloseOnPressOutside | ||
215 | 216 | | |||
216 | contentItem: ListView { | 217 | contentItem: ListView { | ||
217 | id: listView | 218 | id: listView | ||
218 | 219 | | |||
219 | // this causes us to load at least one delegate | 220 | // this causes us to load at least one delegate | ||
220 | // this is essential in guessing the contentHeight | 221 | // this is essential in guessing the contentHeight | ||
221 | // which is needed to initially resize the popup | 222 | // which is needed to initially resize the popup | ||
Show All 33 Lines |