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 "Themes.js" as Themes
26 anchors.fill: parent; anchors.bottomMargin: 0
36 y: 3; width: parent.parent.width; height: 60
38 listModel.select(index)
50 Component.onCompleted: {
51 Themes.init(Controller, listModel);
55 idm:1;name: "DEFAULT";title:"Theme mặc định, không thể xóa";can_be_deleted:false;is_selected:true
59 for(var i=0;i<listModel.count;i++)
60 setProperty(i, "is_selected",false)
61 setProperty(idx, "is_selected", true)
67 anchors.fill: parent;anchors.topMargin: 35;anchors.leftMargin: 5;anchors.rightMargin: 5;anchors.bottomMargin: 12
69 delegate: listDelegate
75 ToolBar { id: toolBar; height: 50;
78 button1Label: "Đồng Ý"
79 button2Label: "Hủy Bỏ"
82 screen.state="mainscreen"
86 screen.state="mainscreen"