Add test for combobox from QQC2
This commit is contained in:
parent
a1880d1e56
commit
fecb716b87
@ -22,14 +22,5 @@ ComponentBase {
|
||||
editable: true
|
||||
model: demoModel
|
||||
}
|
||||
PlasmaCore.ColorScope {
|
||||
implicitWidth: childrenRect.width
|
||||
implicitHeight: childrenRect.width
|
||||
|
||||
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
||||
ComboBox {
|
||||
model:demoModel
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
27
tests/components/combobox3.qml
Normal file
27
tests/components/combobox3.qml
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user