@@ -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: ""
@@ -76,10 +82,11 @@ Showable {
78 Rectangle {
84 Rectangle {
79− // In case background fails to load or is undefined
85+ // In case background fails to load
80 id: backgroundBackup
86 id: backgroundBackup
81 anchors.fill: parent
87 anchors.fill: parent
82 color: "black"
88 color: "black"
89+ visible: root.background.toString() !== ""
@@ -184,19 +191,17 @@ Showable {
184 value: root.delayMinutes
191 value: root.delayMinutes
195+ target: pinPadLoader.item
196+ property: "showCancelButton"
197+ value: root.showCancelButton
190 id: emergencyCallRow
202 id: emergencyCallRow
192− // FIXME: We *should* show emergency dialer if there is a SIM present,
204+ visible: showEmergencyCallButton
193− // regardless of whether the side stage is enabled. But right now,
194− // the assumption is that narrow screens are phones which have SIMs
195− // and wider screens are tablets which don't. When we do allow this
196− // on devices with a side stage and a SIM, work should be done to
197− // ensure that the main stage is disabled while the dialer is present
198− // in the side stage.
199− visible: !shell.sideStageEnabled
201 anchors {
206 anchors {
202 bottom: parent.bottom
207 bottom: parent.bottom