[localeq] remove obsolete vars & comments

set index in i18n.qml to -1, old settings were just for reading from the bogus model
current model uses strings, so index fails to read from it.  This fixes cala crashing on loading i18n.qml
main
demmm 5 years ago
parent 11482559ad
commit d114c383fa

@ -74,7 +74,7 @@ Item {
model: config.supportedLocales model: config.supportedLocales
currentIndex: 1 currentIndex: -1
highlight: Rectangle { highlight: Rectangle {
color: Kirigami.Theme.highlightColor color: Kirigami.Theme.highlightColor
} }
@ -133,10 +133,9 @@ Item {
width: 180; height: 200 width: 180; height: 200
focus: true focus: true
// bogus entries, need to come from Locale config
model: config.supportedLocales model: config.supportedLocales
currentIndex: 2 currentIndex: -1
highlight: Rectangle { highlight: Rectangle {
color: Kirigami.Theme.highlightColor color: Kirigami.Theme.highlightColor
} }

@ -29,9 +29,6 @@ Page {
width: 800 width: 800
height: 550 height: 550
property var confLang: "American English"
property var confLocale: "Nederland"
Loader { Loader {
id: image id: image
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter

Loading…
Cancel
Save