Changeset View
Changeset View
Standalone View
Standalone View
applets/kickoff/package/contents/ui/ConfigButtons.qml
Show All 20 Lines | |||||
21 | 21 | | |||
22 | import org.kde.plasma.core 2.0 as PlasmaCore | 22 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
23 | import org.kde.kirigami 2.5 as Kirigami | 23 | import org.kde.kirigami 2.5 as Kirigami | ||
24 | 24 | | |||
25 | 25 | | |||
26 | GridView { | 26 | GridView { | ||
27 | id: configButtons | 27 | id: configButtons | ||
28 | 28 | | |||
29 | cellHeight: units.gridUnit * 6 + units.smallSpacing | 29 | cellHeight: units.gridUnit * 5 + units.smallSpacing | ||
30 | cellWidth: units.gridUnit * 6 | 30 | cellWidth: units.gridUnit * 5 | ||
31 | 31 | | |||
32 | width: cellWidth * 5 | 32 | width: cellWidth * 5 | ||
33 | height: cellHeight * 2 | 33 | height: cellHeight * 2 | ||
34 | 34 | | |||
35 | property var items: { | 35 | property var items: { | ||
36 | "bookmark": { icon: "bookmarks", text: i18n("Favorites")}, | 36 | "bookmark": { icon: "bookmarks", text: i18n("Favorites")}, | ||
37 | "application": { icon: "applications-other", text: i18n("Applications")}, | 37 | "application": { icon: "applications-other", text: i18n("Applications")}, | ||
38 | "computer": { icon: "pm", text: i18n("Computer")}, | 38 | "computer": { icon: "pm", text: i18n("Computer")}, | ||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 120 | model: DelegateModel { | |||
121 | id: visualModel | 121 | id: visualModel | ||
122 | model: ListModel { | 122 | model: ListModel { | ||
123 | id: listModel | 123 | id: listModel | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | delegate: MouseArea { | 126 | delegate: MouseArea { | ||
127 | id: delegateRoot | 127 | id: delegateRoot | ||
128 | 128 | | |||
129 | width: units.gridUnit * 6 | 129 | width: units.gridUnit * 5 | ||
130 | height: units.gridUnit * 5 | 130 | height: units.gridUnit * 4 | ||
131 | 131 | | |||
132 | property int visualIndex: DelegateModel.itemsIndex | 132 | property int visualIndex: DelegateModel.itemsIndex | ||
133 | 133 | | |||
134 | drag.target: button | 134 | drag.target: button | ||
135 | 135 | | |||
136 | onReleased: { | 136 | onReleased: { | ||
137 | button.Drag.drop() | 137 | button.Drag.drop() | ||
138 | } | 138 | } | ||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | |||||
209 | } | 209 | } | ||
210 | } | 210 | } | ||
211 | } | 211 | } | ||
212 | 212 | | |||
213 | Kirigami.Heading { | 213 | Kirigami.Heading { | ||
214 | level: 2 | 214 | level: 2 | ||
215 | text: i18n("Active Tabs") | 215 | text: i18n("Active Tabs") | ||
216 | anchors.bottom: configButtons.top | 216 | anchors.bottom: configButtons.top | ||
217 | width: parent.width | ||||
218 | horizontalAlignment: Text.AlignHCenter | ||||
217 | } | 219 | } | ||
218 | 220 | | |||
219 | Kirigami.Heading { | 221 | Kirigami.Heading { | ||
220 | level: 2 | 222 | level: 2 | ||
221 | text: i18n("Inactive Tabs") | 223 | text: i18n("Inactive Tabs") | ||
222 | anchors.bottom: configButtons.verticalCenter | 224 | anchors.bottom: configButtons.verticalCenter | ||
225 | width: parent.width | ||||
226 | horizontalAlignment: Text.AlignHCenter | ||||
223 | } | 227 | } | ||
224 | } | 228 | } |