Kirigami-addons
FormComboBoxDelegate.qml
78 property alias currentText: combobox.currentText
85 * @see <a href="https://doc.qt.io/qt-6/qtquick-modelviewsdata-modelview.html">Models and Views in QtQuick</a>
130 * This can be used to slightly modify the text to be displayed in the combobox, for instance, by adding a string with the ::currentText.
174 }
185 property int displayMode: Kirigami.Settings.isMobile ? FormComboBoxDelegate.Dialog : FormComboBoxDelegate.ComboBox
191 implicitWidth: ListView.view ? ListView.view.width : Kirigami.Units.gridUnit * 16
192 text: controlRoot.textRole ? (Array.isArray(controlRoot.model) ? modelData[controlRoot.textRole] : model[controlRoot.textRole]) : modelData
197 * @brief The delegate component to use as entries for each value in the dialog and page display mode.
230 property real __indicatorMargin: controlRoot.indicator && controlRoot.indicator.visible && controlRoot.indicator.width > 0 ? controlRoot.spacing + indicator.width + controlRoot.spacing : 0
244 controlRoot._selectionPageItem = controlRoot.ApplicationWindow.window.pageStack.pushDialogLayer(page)
333 visible: controlRoot.displayMode === FormComboBoxDelegate.Dialog || controlRoot.displayMode === FormComboBoxDelegate.Page
339 visible: controlRoot.displayMode === FormComboBoxDelegate.Dialog || controlRoot.displayMode === FormComboBoxDelegate.Page
A Form delegate that corresponds to a combobox.
Definition FormComboBoxDelegate.qml:37
Component comboBoxDelegate
The delegate component to use as entries in the combobox display mode.
Definition FormComboBoxDelegate.qml:170
int displayMode
This property holds what display mode the delegate should show as.
Definition FormComboBoxDelegate.qml:166
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:54:39 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:54:39 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.