mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-29 22:55:56 +08:00
Merge branch 'main' of https://github.com/zhuzichu520/FluentUI
This commit is contained in:
commit
a43637f75e
@ -32,6 +32,30 @@ FluScrollablePage{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FluArea {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height: 80
|
||||||
|
paddings: 5
|
||||||
|
Layout.topMargin: 20
|
||||||
|
Column{
|
||||||
|
spacing: 5
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
FluText{
|
||||||
|
text: "disabled=true"
|
||||||
|
x:10
|
||||||
|
}
|
||||||
|
FluComboBox {
|
||||||
|
disabled: true
|
||||||
|
model: ListModel {
|
||||||
|
id: model_2
|
||||||
|
ListElement { text: "Banana" }
|
||||||
|
ListElement { text: "Apple" }
|
||||||
|
ListElement { text: "Coconut" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FluArea{
|
FluArea{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 80
|
height: 80
|
||||||
@ -47,14 +71,14 @@ FluScrollablePage{
|
|||||||
FluComboBox {
|
FluComboBox {
|
||||||
editable: true
|
editable: true
|
||||||
model: ListModel {
|
model: ListModel {
|
||||||
id: model_2
|
id: model_3
|
||||||
ListElement { text: "Banana" }
|
ListElement { text: "Banana" }
|
||||||
ListElement { text: "Apple" }
|
ListElement { text: "Apple" }
|
||||||
ListElement { text: "Coconut" }
|
ListElement { text: "Coconut" }
|
||||||
}
|
}
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if (find(editText) === -1)
|
if (find(editText) === -1)
|
||||||
model_2.append({text: editText})
|
model_3.append({text: editText})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,12 @@ T.ComboBox {
|
|||||||
autoScroll: control.editable
|
autoScroll: control.editable
|
||||||
font:control.font
|
font:control.font
|
||||||
readOnly: control.down
|
readOnly: control.down
|
||||||
color: FluTheme.dark ? Qt.rgba(255/255,255/255,255/255,1) : Qt.rgba(27/255,27/255,27/255,1)
|
color: {
|
||||||
|
if(control.disabled) {
|
||||||
|
return FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
|
||||||
|
}
|
||||||
|
return FluTheme.dark ? Qt.rgba(255/255,255/255,255/255,1) : Qt.rgba(27/255,27/255,27/255,1)
|
||||||
|
}
|
||||||
inputMethodHints: control.inputMethodHints
|
inputMethodHints: control.inputMethodHints
|
||||||
validator: control.validator
|
validator: control.validator
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
Loading…
Reference in New Issue
Block a user