Lines 33-38
Rectangle {
Link Here
|
33 |
LayoutMirroring.enabled: Qt.locale().textDirection == Qt.RightToLeft |
33 |
LayoutMirroring.enabled: Qt.locale().textDirection == Qt.RightToLeft |
34 |
LayoutMirroring.childrenInherit: true |
34 |
LayoutMirroring.childrenInherit: true |
35 |
|
35 |
|
|
|
36 |
property int sessionIndex: session.index |
37 |
|
36 |
TextConstants { id: textConstants } |
38 |
TextConstants { id: textConstants } |
37 |
|
39 |
|
38 |
Connections { |
40 |
Connections { |
Lines 121-127
Rectangle {
Link Here
|
121 |
|
123 |
|
122 |
Keys.onPressed: { |
124 |
Keys.onPressed: { |
123 |
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { |
125 |
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { |
124 |
sddm.login(name.text, password.text, session.index) |
126 |
sddm.login(name.text, password.text, sessionIndex) |
125 |
event.accepted = true |
127 |
event.accepted = true |
126 |
} |
128 |
} |
127 |
} |
129 |
} |
Lines 148-154
Rectangle {
Link Here
|
148 |
|
150 |
|
149 |
Keys.onPressed: { |
151 |
Keys.onPressed: { |
150 |
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { |
152 |
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { |
151 |
sddm.login(name.text, password.text, session.index) |
153 |
sddm.login(name.text, password.text, sessionIndex) |
152 |
event.accepted = true |
154 |
event.accepted = true |
153 |
} |
155 |
} |
154 |
} |
156 |
} |
Lines 237-243
Rectangle {
Link Here
|
237 |
text: textConstants.login |
239 |
text: textConstants.login |
238 |
width: parent.btnWidth |
240 |
width: parent.btnWidth |
239 |
|
241 |
|
240 |
onClicked: sddm.login(name.text, password.text, session.index) |
242 |
onClicked: sddm.login(name.text, password.text, sessionIndex) |
241 |
|
243 |
|
242 |
KeyNavigation.backtab: layoutBox; KeyNavigation.tab: shutdownButton |
244 |
KeyNavigation.backtab: layoutBox; KeyNavigation.tab: shutdownButton |
243 |
} |
245 |
} |