1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "UIConstants.js" as Const
10 //Component.onCompleted: init()
13 if(Utils.isAuthorized()) {
14 //title = "Hi, "+Utils.name();
16 console.log("not authorized!");
17 pageStack.initialPage = "LoginPage.qml";
22 [qsTr("About Ubi"),false]
25 function menuFun(id) {
26 if(id==qsTr("About Ubi")) {
33 anchors.centerIn: parent
36 source: "images/cloud.png"
37 width: 150; height: 98
48 height: 100; width: 250
50 //iconSource: "images/files.png"
51 anchors.horizontalCenter: parent.horizontalCenter
53 pageStack.push("FilesPage.qml");
54 pageStack.currentPage.init();
68 height: 100; width: 250
69 label: qsTr("Account")
70 //iconSource: "images/account.png"
71 anchors.horizontalCenter: parent.horizontalCenter
73 pageStack.push("AccountPage.qml");
77 height: 100; width: 250
78 label: qsTr("Settings")
79 //iconSource: "images/settings.png"
80 anchors.horizontalCenter: parent.horizontalCenter
81 onButtonClicked: pageStack.push("SettingsPage.qml");
85 //onButtonClicked: tip.show("Ala ma kota!")
86 //onButtonClicked: dialog.open()
87 //onButtonClicked: U1.getAccount()
104 iconSource: "images/ubi50.png"
105 textHeader: qsTr("<b>Ubi</b>")
107 text: qsTr("<p>An unofficial Ubuntu One app for Maemo 5 "
108 +"and other Qt-enabled platforms.</p>"
109 +"<p><small>http://ubi.garage.maemo.org</small></p>"
110 +"<p><small>© 2012 Michal Kosciesza</small></p>")
112 onOpened: mask.state = "dialog"
113 onCanceled: mask.state = "idle"