on xenial help sign in
[CHECKPOINT COMMIT] header looks ok
commitf0d4352c37ac6e53c35f9b1dc87bba0bc191aea4 authorJosh Arenson <joshua.arenson@canonical.com> dateTue 5 Jul 2016, 14:23 (10 years ago) parenta85816f
1 file changed+29−4
qml/Greeter/SessionsList.qml+29−4
qml/Greeter/SessionsList.qml+29−4
@@ -25,11 +25,13 @@ Item {
2525 objectName: "sessionsList"
2626
2727 property string initiallySelectedSession
28− property alias selectedIndex: sessionsList.selectedIndex
28+ //property alias selectedIndex: sessionsList.selectedIndex
2929 signal sessionSelected(string sessionKey)
3030
3131 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)
3335
3436 anchors {
3537 left: parent.left
@@ -37,7 +39,30 @@ Item {
3739 verticalCenter: parent.verticalCenter
3840 }
3941
40− ItemSelector {
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+
65+ /*ItemSelector {
4166 id: sessionsList
4267 objectName: "sessionsListSelector"
4368
@@ -65,6 +90,6 @@ Item {
6590 sessionSelected(sessionsList.model.data(index,
6691 LightDMService.sessionRoles.KeyRole));
6792 }
68− }
93+ }*/
6994 }
7095}