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