2014-12-11 15:06:54 +01:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
import org.kde.plasma.components 2.0
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
ComponentBase {
|
2014-12-11 15:06:54 +01:00
|
|
|
Flow {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 20
|
|
|
|
spacing: 20
|
2019-12-09 17:33:23 +01:00
|
|
|
ListModel {
|
|
|
|
id: demoModel
|
|
|
|
ListElement { text: "Banana"; color: "Yellow" }
|
|
|
|
ListElement { text: "Apple"; color: "Green" }
|
|
|
|
ListElement { text: "Coconut"; color: "Brown" }
|
|
|
|
}
|
2014-12-11 15:06:54 +01:00
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
model:demoModel
|
|
|
|
}
|
|
|
|
ComboBox {
|
|
|
|
editable: true
|
|
|
|
model: demoModel
|
|
|
|
}
|
|
|
|
PlasmaCore.ColorScope {
|
|
|
|
implicitWidth: childrenRect.width
|
|
|
|
implicitHeight: childrenRect.width
|
|
|
|
|
|
|
|
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
|
|
|
ComboBox {
|
|
|
|
model:demoModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-10 11:06:10 +01:00
|
|
|
}
|