a3acfbfce6
Summary: For quickly other bugs in PC3 Test Plan: Opened qmlscene on some files It's only for unit tests anyway Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D25822
36 lines
862 B
QML
36 lines
862 B
QML
import QtQuick 2.0
|
|
|
|
import org.kde.plasma.components 2.0
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
ComponentBase {
|
|
Flow {
|
|
anchors.fill: parent
|
|
anchors.margins: 20
|
|
spacing: 20
|
|
ListModel {
|
|
id: demoModel
|
|
ListElement { text: "Banana"; color: "Yellow" }
|
|
ListElement { text: "Apple"; color: "Green" }
|
|
ListElement { text: "Coconut"; color: "Brown" }
|
|
}
|
|
|
|
ComboBox {
|
|
model:demoModel
|
|
}
|
|
ComboBox {
|
|
editable: true
|
|
model: demoModel
|
|
}
|
|
PlasmaCore.ColorScope {
|
|
implicitWidth: childrenRect.width
|
|
implicitHeight: childrenRect.width
|
|
|
|
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
|
ComboBox {
|
|
model:demoModel
|
|
}
|
|
}
|
|
}
|
|
}
|