rollback to qtquick 1.0 to compatible with qtlib 4.7 maemo5 fremantle pr 1.3
[lichviet] / qml / LichViet / Switch.qml
index 4e6ab7c..a5e94c4 100644 (file)
@@ -3,7 +3,7 @@ Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
 \r
 This program is free software: you can redistribute it and/or modify\r
 it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation, either version 3 of the License, or\r
+the Free Software Foundation, either version 2 of the License, or\r
 (at your option) any later version.\r
 \r
 This program is distributed in the hope that it will be useful,\r
@@ -17,9 +17,18 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>
 \r
 import QtQuick 1.0\r
 \r
+import "Themes.js" as Themes\r
+\r
 Item {\r
     id: container\r
 \r
+    Loader {\r
+        id: theme_manager\r
+        property alias theme: theme_manager.item\r
+        source: Themes.default_theme()\r
+    }\r
+\r
+\r
     // Font properties\r
     property string fontName: "Nokia Sans"\r
     property int fontSize: 18\r