Skip to content

Commit 7242129

Browse files
committed
fix: widget not loading on Qt version 6.9 or older
ComboBox currentValue is writable only in Qt 6.10 and newer https://qt-project.atlassian.net/browse/QTBUG-100345 refs: #327
1 parent 81f57c5 commit 7242129

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

src/plasmoid/package/contents/ui/FullRepresentation.qml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ ColumnLayout {
586586
if (settings) {
587587
settings.destroy();
588588
}
589-
// settings = null
590589
}
591590

592591
function saveCustomColorsList() {
@@ -1253,24 +1252,6 @@ ColumnLayout {
12531252
Layout.alignment: Qt.AlignHCenter
12541253
}
12551254

1256-
// RowLayout {
1257-
// PlasmaComponents3.Label {
1258-
// text: "Variant"
1259-
// Layout.alignment: Qt.AlignLeft
1260-
// }
1261-
// PlasmaComponents3.ComboBox {
1262-
// model: schemeVariantsModel
1263-
// Layout.fillWidth: true
1264-
// textRole: "text"
1265-
// valueRole: "value"
1266-
// currentIndex: settings.scheme_variant
1267-
1268-
// onCurrentIndexChanged: {
1269-
// settings.scheme_variant = model.get(currentIndex)["value"]
1270-
// }
1271-
// }
1272-
// }
1273-
12741255
Flow {
12751256
Layout.preferredWidth: mainLayout.width
12761257
spacing: 6
@@ -2242,7 +2223,7 @@ ColumnLayout {
22422223
PlasmaComponents3.ComboBox {
22432224
model: ["2021", "2025"]
22442225
Layout.fillWidth: true
2245-
currentValue: settings.spec_version
2226+
currentIndex: indexOfValue(settings.spec_version)
22462227
onActivated: index => {
22472228
settings.spec_version = currentText;
22482229
}

0 commit comments

Comments
 (0)