Skip to content

UniDeskComBox Type ​

Component selection combo box control based on UniDeskComboBox. Used to select parent or related components in the visual editor.

ProjectDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskComBox.qml
InheritsUniDeskComboBox
QML Importimport UniDesk.Controls 1.0

Editor Only

This control is mainly used internally by the Uniquenium visual editor.

Custom Properties ​

PropertyTypeDefaultDescription
comManagervar—Component manager reference (inherited from UniDeskComboBox)
editingComponentvar—Component being edited
currentComponentvar—Currently selected component
allPagesboolfalseWhether to show components from all pages (false = current page only)

Features ​

  • Displays three special items: Desktop Layer, Wallpaper Layer, Top Layer
  • Dynamically lists other components (excluding self)
  • Cross-page or same-page filtering
  • Editable (editable: true)

Methods ​

function getNames(list) → list<string> ​

Get component name list (including special layers).

function getComByIndex(index) → var ​

Get component object by index.

function getIndexByCom(com) → int ​

Get index by component object.

Example ​

qml
import UniDesk.Controls 1.0

UniDeskComBox {
    comManager: comManager
    editingComponent: currentComponent
    currentComponent: parentComponent
    allPages: false
}

Released under the CC BY-SA 4.0 open documentation license.