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: 200
50 anchors.horizontalCenter: parent.horizontalCenter
52 pageStack.push("FilesPage.qml");
53 pageStack.currentPage.init();
67 height: 100; width: 200
68 label: qsTr("Account")
69 anchors.horizontalCenter: parent.horizontalCenter
71 pageStack.push("AccountPage.qml");
75 height: 100; width: 200
76 label: qsTr("Settings")
77 anchors.horizontalCenter: parent.horizontalCenter
78 onButtonClicked: pageStack.push("SettingsPage.qml");
82 //onButtonClicked: tip.show("Ala ma kota!")
83 //onButtonClicked: dialog.open()
84 //onButtonClicked: U1.getAccount()
95 //iconSource: "images/ubi50.png"
96 text: qsTr("<p><b>Ubi</b></p>"
97 +"<p>An unofficial Ubuntu One app for Maemo 5 "
98 +"and other Qt-enabled platforms.</p>"
99 +"<p><small>http://ubi.garage.maemo.org</small></p>"
100 +"<p><small>© 2012 Michal Kosciesza</small></p>")
101 onOpened: mask.state = "dialog"
102 onCanceled: mask.state = "idle"
107 anchors.bottom: parent.bottom
108 anchors.bottomMargin: 10
109 anchors.horizontalCenter: parent.horizontalCenter