21 import Ubuntu.Components 0.1
22 import
"../Components"
27 property QtObject menuModel: null
28 property QtObject menuData: null
29 property int menuIndex
30 property int maxHeight
31 readonly
property bool fullscreen: menuData.type ===
"com.canonical.snapdecision.pinlock"
34 "com.canonical.snapdecision.textfield": textfield,
35 "com.canonical.snapdecision.pinlock" : pinLock,
39 if (menuData.type !== undefined) {
40 var component = _map[menuData.type];
41 if (component !== undefined) {
53 anchors.left: parent.left; anchors.right: parent.right
55 Component.onCompleted: {
56 menuModel.loadExtendedAttributes(menuIndex, {
"x-echo-mode-password":
"bool"});
57 checkBox.checked = menuData.ext.xEchoModePassword ?
false :
true
58 checkBoxRow.visible = menuData.ext.xEchoModePassword
69 inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
70 anchors.left: parent.left; anchors.right: parent.right
71 echoMode: checkBox.checked ? TextInput.Normal : TextInput.Password
74 menuModel.changeState(menuIndex, text);
90 anchors.verticalCenter: checkBox.verticalCenter
91 text: i18n.tr(
"Show password")
101 anchors.left: parent.left; anchors.right: parent.right
102 height: menuFactory.maxHeight
103 placeholderText: i18n.tr(
"Please enter SIM PIN")
104 background: shell.background
107 menuModel.changeState(menuIndex, passphrase);
108 entryEnabled =
false;
112 menuModel.activate(menuIndex,
false);