1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
3 import "UIConstants.js" as Const
7 title: qsTr("Settings")
9 property alias taskMenu: taskMenu
11 Component.onCompleted: {
12 var _lang = Utils.locale();
16 lang.text = "English";
18 login.text = Utils.name();
25 contentHeight: content.height+Const.TOP_BAR_HEIGHT+Const.SYSTEM_BAR_HEIGHT+Const.TEXT_MARGIN
26 y: Const.TOP_BAR_HEIGHT
30 spacing: Const.DEFAULT_MARGIN
36 text: qsTr("Language:")
50 width: root.width-2*Const.TEXT_MARGIN
55 text: qsTr("Logged as:")
63 label: qsTr("Log out")
65 Utils.resetAuthorization();
66 pageStack.initialPage = "LoginPage.qml";
69 //pageStack.currentPage.init();
79 text: qsTr("Choose language:")
81 mask.state = "dialog";
85 Utils.setLocale(option);
86 tip.show(qsTr("Restart application!"));
96 menuHeight: menuFixed.height+4*Const.DEFAULT_MARGIN
100 y: root.height-taskMenu.menuHeight-Const.SYSTEM_BAR_HEIGHT+1*Const.DEFAULT_MARGIN