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
26 +Const.SYSTEM_BAR_HEIGHT+Const.TEXT_MARGIN
27 y: Const.TOP_BAR_HEIGHT
31 spacing: Const.DEFAULT_MARGIN
37 text: qsTr("Language:")
51 width: root.width-2*Const.TEXT_MARGIN
56 text: qsTr("Logged as:")
64 label: qsTr("Log out")
66 Utils.resetAuthorization();
67 pageStack.initialPage = "LoginPage.qml";
78 text: qsTr("Choose language:")
80 mask.state = "dialog";
84 Utils.setLocale(option);
85 tip.show(qsTr("Restart application!"));
95 menuHeight: menuFixed.height+4*Const.DEFAULT_MARGIN
99 y: root.height-taskMenu.menuHeight-Const.SYSTEM_BAR_HEIGHT+1*Const.DEFAULT_MARGIN