Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 354 Lines • ▼ Show 20 Line(s) | 70 | MouseArea { | |||
---|---|---|---|---|---|
355 | 355 | | |||
356 | Component { | 356 | Component { | ||
357 | id: userPromptComponent | 357 | id: userPromptComponent | ||
358 | Login { | 358 | Login { | ||
359 | showUsernamePrompt: true | 359 | showUsernamePrompt: true | ||
360 | notificationMessage: root.notificationMessage | 360 | notificationMessage: root.notificationMessage | ||
361 | loginScreenUiVisible: loginScreenRoot.uiVisible | 361 | loginScreenUiVisible: loginScreenRoot.uiVisible | ||
362 | 362 | | |||
363 | userListModel: QtObject { | 363 | // using a model rather than a QObject list to avoid QTBUG-75900 | ||
364 | property string name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password") | 364 | userListModel: ListModel { | ||
365 | property string iconSource: "" | 365 | ListElement { | ||
366 | name: "" | ||||
367 | iconSource: "" | ||||
368 | } | ||||
369 | Component.onCompleted: { | ||||
370 | // as we can't bind inside ListElement | ||||
371 | setProperty(0, "name", i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password")); | ||||
372 | } | ||||
366 | } | 373 | } | ||
367 | 374 | | |||
368 | onLoginRequest: { | 375 | onLoginRequest: { | ||
369 | root.notificationMessage = "" | 376 | root.notificationMessage = "" | ||
370 | sddm.login(username, password, sessionButton.currentIndex) | 377 | sddm.login(username, password, sessionButton.currentIndex) | ||
371 | } | 378 | } | ||
372 | 379 | | |||
373 | actionItems: [ | 380 | actionItems: [ | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |