~nskaggs/sudoku-app/revert-173

« back to all changes in this revision

Viewing changes to sudoku-app.qml

  • Committer: dinko.metalac at gmail
  • Date: 2014-02-18 16:22:41 UTC
  • mto: This revision was merged to the branch mainline in revision 158.
  • Revision ID: dinko.metalac@gmail.com-20140218162241-0oyy3ofeqlkapzgl
reverting back to ValueSelector

Show diffs side-by-side

added added

removed removed

Lines of Context:
1073
1073
                        text: i18n.tr("<b>Sudoku settings</b>")
1074
1074
                    }
1075
1075
 
1076
 
                    ListItem.ItemSelector {
 
1076
                    ListItem.ValueSelector {
1077
1077
                        objectName: "difficultySelector"
1078
1078
                        id: difficultySelector
1079
1079
                        text: i18n.tr("Default Difficulty")
1080
 
                        model: [i18n.tr("Easy"), i18n.tr("Moderate"), i18n.tr("Hard"), i18n.tr("Ultra Hard"), i18n.tr("Always ask")]
 
1080
                        values: [i18n.tr("Easy"), i18n.tr("Moderate"), i18n.tr("Hard"), i18n.tr("Ultra Hard"), i18n.tr("Always ask")]
1081
1081
                        onSelectedIndexChanged: {
1082
1082
                            //print(difficultySelector.selectedIndex)
1083
1083
                            switch(difficultySelector.selectedIndex) {
1112
1112
                        }
1113
1113
 
1114
1114
                    }
1115
 
                    ListItem.ItemSelector {
 
1115
                    ListItem.ValueSelector {
1116
1116
                        objectName: "themeSelector"
1117
1117
                        id: themeSelector
1118
1118
                        text: i18n.tr("Theme")
1119
 
                        model: ["UbuntuColours", "Simple"]
 
1119
                        values: ["UbuntuColours", "Simple"]
1120
1120
                        onSelectedIndexChanged: {
1121
1121
                            var newColorScheme = null;
1122
1122
                            if (selectedIndex == 0)