Added global controller andalso filebrowser qml
[lichviet] / qml / LichViet / Themes.js
index 80d73de..8690364 100644 (file)
@@ -3,7 +3,7 @@ Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
+the Free Software Foundation, either version 2 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
@@ -22,3 +22,9 @@ var root_dir = "/opt/usr/share/LichViet/";
 function default_theme(){
     return "file:"+root_dir+"themes/default/default.qml";
 }
+
+function init(Controller, Model){
+   if(Controller.pathExists(root_dir)){
+       Model.append({idm:2,name: "BLACK",title:"",can_be_deleted:false,is_selected:false})
+   }
+}