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) {
58 Component.onCompleted: {
59 menuModel.loadExtendedAttributes(menuIndex, {
"x-echo-mode-password":
"bool"});
60 checkBox.checked = menuData.ext.xEchoModePassword ?
false :
true
61 checkBoxRow.visible = menuData.ext.xEchoModePassword
72 inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
77 echoMode: checkBox.checked ? TextInput.Normal : TextInput.Password
80 menuModel.changeState(menuIndex, text);
96 anchors.verticalCenter: checkBox.verticalCenter
97 text: i18n.tr(
"Show password")
111 height: menuFactory.maxHeight
112 placeholderText: i18n.tr(
"Please enter SIM PIN")
113 background: shell.background
116 menuModel.changeState(menuIndex, passphrase);
117 entryEnabled =
false;
121 menuModel.activate(menuIndex,
false);