Add test for combobox from QQC2

This commit is contained in:
David Edmundson 2019-12-12 15:29:33 +00:00
parent a1880d1e56
commit fecb716b87
2 changed files with 27 additions and 9 deletions

View File

@ -22,14 +22,5 @@ ComponentBase {
editable: true
model: demoModel
}
PlasmaCore.ColorScope {
implicitWidth: childrenRect.width
implicitHeight: childrenRect.width
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
ComboBox {
model:demoModel
}
}
}
}

View File

@ -0,0 +1,27 @@
import QtQuick 2.0
import org.kde.plasma.components 3.0
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
textRole: "text"
}
ComboBox {
editable: true
model: demoModel
textRole: "text"
}
}
}