2
import Ubuntu.Components 0.1
3
import Ubuntu.Components.ListItems 0.1 as ListItem
9
title: i18n.tr("Settings")
23
model: ["12-hour", "24-hour"]
24
selectedIndex: appSetting.contents.timeFormat === "12-hour" ? 0 : 1
25
onSelectedIndexChanged: {
26
var settings = appSetting.contents
27
settings.timeFormat = selectedIndex === 0 ? "12-hour" : "24-hour"
28
appSetting.contents = settings
35
model: ["Analogue", "Digital"]
38
selectedIndex: appSetting.contents.style === "analogue" ? 0 : 1
39
onSelectedIndexChanged: {
40
var settings = appSetting.contents
41
settings.style = selectedIndex === 0 ? "analogue" : "digital"
42
appSetting.contents = settings