Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/SessionManagementScreen.qml
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 28 | Item { | |||
---|---|---|---|---|---|
56 | * Self explanatory | 56 | * Self explanatory | ||
57 | */ | 57 | */ | ||
58 | property alias userListCurrentIndex: userListView.currentIndex | 58 | property alias userListCurrentIndex: userListView.currentIndex | ||
59 | property var userListCurrentModelData: userListView.currentItem === null ? [] : userListView.currentItem.m | 59 | property var userListCurrentModelData: userListView.currentItem === null ? [] : userListView.currentItem.m | ||
60 | property bool showUserList: true | 60 | property bool showUserList: true | ||
61 | 61 | | |||
62 | property alias userList: userListView | 62 | property alias userList: userListView | ||
63 | 63 | | |||
64 | property int fontSize: config.fontSize | ||||
65 | | ||||
64 | default property alias _children: innerLayout.children | 66 | default property alias _children: innerLayout.children | ||
65 | 67 | | |||
66 | UserList { | 68 | UserList { | ||
67 | id: userListView | 69 | id: userListView | ||
68 | visible: showUserList && y > 0 | 70 | visible: showUserList && y > 0 | ||
69 | anchors { | 71 | anchors { | ||
70 | bottom: parent.verticalCenter | 72 | bottom: parent.verticalCenter | ||
71 | left: parent.left | 73 | left: parent.left | ||
72 | right: parent.right | 74 | right: parent.right | ||
73 | } | 75 | } | ||
74 | } | 76 | } | ||
75 | 77 | | |||
76 | //goal is to show the prompts, in ~16 grid units high, then the action buttons | 78 | //goal is to show the prompts, in ~16 grid units high, then the action buttons | ||
77 | //but collapse the space between the prompts and actions if there's no room | 79 | //but collapse the space between the prompts and actions if there's no room | ||
78 | //ui is constrained to 16 grid units wide, or the screen | 80 | //ui is constrained to 16 grid units wide, or the screen | ||
79 | ColumnLayout { | 81 | ColumnLayout { | ||
80 | id: prompts | 82 | id: prompts | ||
81 | anchors.top: parent.verticalCenter | 83 | anchors.top: parent.verticalCenter | ||
82 | anchors.topMargin: units.gridUnit * 0.5 | 84 | anchors.topMargin: units.gridUnit * 0.5 | ||
83 | anchors.left: parent.left | 85 | anchors.left: parent.left | ||
84 | anchors.right: parent.right | 86 | anchors.right: parent.right | ||
85 | anchors.bottom: parent.bottom | 87 | anchors.bottom: parent.bottom | ||
86 | PlasmaComponents.Label { | 88 | PlasmaComponents.Label { | ||
87 | id: notificationsLabel | 89 | id: notificationsLabel | ||
90 | font.pointSize: Math.max(fontSize + 1,theme.defaultFont.pointSize + 1) | ||||
88 | Layout.maximumWidth: units.gridUnit * 16 | 91 | Layout.maximumWidth: units.gridUnit * 16 | ||
89 | Layout.alignment: Qt.AlignHCenter | 92 | Layout.alignment: Qt.AlignHCenter | ||
90 | Layout.fillWidth: true | 93 | Layout.fillWidth: true | ||
91 | horizontalAlignment: Text.AlignHCenter | 94 | horizontalAlignment: Text.AlignHCenter | ||
92 | wrapMode: Text.WordWrap | 95 | wrapMode: Text.WordWrap | ||
93 | font.italic: true | 96 | font.italic: true | ||
94 | } | 97 | } | ||
95 | ColumnLayout { | 98 | ColumnLayout { | ||
Show All 23 Lines |