@@ -24,6 +24,12 @@ Showable {
24 // Determine if a numeric or alphanumeric pad is used.
24 // Determine if a numeric or alphanumeric pad is used.
25 property bool alphaNumeric: false
25 property bool alphaNumeric: false
27+ // Whether to show an emergency call button
28+ property bool showEmergencyCallButton: true
30+ // Whether to show a cancel button (not all lockscreen types normally do anyway)
31+ property bool showCancelButton: true
27 // Informational text. (e.g. some text to tell which domain this is pin is entered for)
33 // Informational text. (e.g. some text to tell which domain this is pin is entered for)
28 property string infoText: ""
34 property string infoText: ""
@@ -89,10 +95,11 @@ Showable {
91 Rectangle {
97 Rectangle {
92− // In case background fails to load or is undefined
98+ // In case background fails to load
93 id: backgroundBackup
99 id: backgroundBackup
94 anchors.fill: parent
100 anchors.fill: parent
95 color: "black"
101 color: "black"
102+ visible: root.background.toString() !== ""
@@ -182,20 +189,18 @@ Showable {
182 property: "entryEnabled"
189 property: "entryEnabled"
183 value: !pinPadLoader.waiting && !forcedDelayTimer.running
190 value: !pinPadLoader.waiting && !forcedDelayTimer.running
193+ target: pinPadLoader.item
194+ property: "showCancelButton"
195+ value: root.showCancelButton
188 id: emergencyCallLabel
200 id: emergencyCallLabel
189 objectName: "emergencyCallLabel"
201 objectName: "emergencyCallLabel"
191− // FIXME: We *should* show emergency dialer if there is a SIM present,
203+ visible: showEmergencyCallButton
192− // regardless of whether the side stage is enabled. But right now,
193− // the assumption is that narrow screens are phones which have SIMs
194− // and wider screens are tablets which don't. When we do allow this
195− // on devices with a side stage and a SIM, work should be done to
196− // ensure that the main stage is disabled while the dialer is present
197− // in the side stage.
198− visible: !shell.sideStageEnabled
200 anchors {
205 anchors {
201 bottom: parent.bottom
206 bottom: parent.bottom