2 Copyright (C) 2011 by Cuong Le <metacuong@gmail.com>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>
19 import "Settings.js" as Settings
25 anchors.fill: parent; anchors.bottomMargin: 16
35 width:rectangle1.width;
39 border.color: "#b57e8f"
46 font.family: "Nokia Sans"
48 anchors.verticalCenter: parent.verticalCenter
53 x:rectangle1.width-220
55 listModel.setProperty(index, "selected", switchedOn);
58 anchors.verticalCenter: parent.verticalCenter
67 Component.onCompleted: {
68 Settings.restore(listModel);
69 var cdx = Settings.chedoxoay();
70 ROOT.initScreenOrientation(cdx);
76 anchors.fill: parent;anchors.topMargin: 45;anchors.leftMargin: 0;
78 delegate: listDelegate
84 ToolBar { id: toolBar; height: 50;
87 button1Label: "Đồng Ý"
88 button2Label: "Hủy Bỏ"
91 Settings.save(listModel)
92 screen.state="mainscreen"
94 var cdx = Settings.chedoxoay();
95 ROOT.initScreenOrientation(cdx);
98 Settings.restore(listModel)
99 screen.state="mainscreen"