on xenial help sign in
[CHECKPOINT COMMIT] header looks ok
f0d4352Josh Arenson
qml/Greeter/SessionsList.qml+29−4
@@ -25,11 +25,13 @@ Item {
25 objectName: "sessionsList"
25 objectName: "sessionsList"
26
26
27 property string initiallySelectedSession
27 property string initiallySelectedSession
28− property alias selectedIndex: sessionsList.selectedIndex
28+ //property alias selectedIndex: sessionsList.selectedIndex
29 signal sessionSelected(string sessionKey)
29 signal sessionSelected(string sessionKey)
30
30
31 LoginAreaContainer {
31 LoginAreaContainer {
32− height: sessionsList.itemHeight * sessionsList.model.count
32+ height: units.gu(5) * sessionsList.model.count
33+ //width: parent.width
34+ width: units.gu(36)
33
35
34 anchors {
36 anchors {
35 left: parent.left
37 left: parent.left
@@ -37,7 +39,30 @@ Item {
37 verticalCenter: parent.verticalCenter
39 verticalCenter: parent.verticalCenter
38 }
40 }
39
41
42+ UbuntuListView {
43+ id: sessionsList
44+ anchors.fill: parent
45+
46+ model: LightDMService.sessions
47+ header: ListItemLayout {
48+ id: header
49+
50+ title.color: theme.palette.normal.raisedText
51+ title.font.pixelSize: units.gu(2.1)
52+ title.text: i18n.tr("Select desktop environment")
53+
54+ Icon {
55+ id: icon
56+ width: units.gu(3)
57+ SlotsLayout.position: SlotsLayout.Leading
58+ name: "go-previous"
59+ }
60+ }
61+
62+ headerPositioning: ListView.OverlayHeader
63+ }
64+
40− ItemSelector {
65+ /*ItemSelector {
41 id: sessionsList
66 id: sessionsList
42 objectName: "sessionsListSelector"
67 objectName: "sessionsListSelector"
43
68
@@ -65,6 +90,6 @@ Item {
65 sessionSelected(sessionsList.model.data(index,
90 sessionSelected(sessionsList.model.data(index,
66 LightDMService.sessionRoles.KeyRole));
91 LightDMService.sessionRoles.KeyRole));
67 }
92 }
68− }
93+ }*/
69 }
94 }
70}
95}