Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindesktop/package/contents/ui/main.qml
Show All 16 Lines | |||||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.5 | 20 | import QtQuick 2.5 | ||
21 | import QtQuick.Controls 2.5 as QQC2 | 21 | import QtQuick.Controls 2.5 as QQC2 | ||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
23 | 23 | | |||
24 | import org.kde.kcm 1.2 | 24 | import org.kde.kcm 1.2 | ||
25 | import org.kde.kirigami 2.5 as Kirigami | 25 | import org.kde.kirigami 2.10 as Kirigami | ||
26 | import org.kde.plasma.core 2.1 as PlasmaCore | 26 | import org.kde.plasma.core 2.1 as PlasmaCore | ||
27 | 27 | | |||
28 | ScrollViewKCM { | 28 | ScrollViewKCM { | ||
29 | id: root | 29 | id: root | ||
30 | 30 | | |||
31 | ConfigModule.quickHelp: i18n("This module lets you configure the navigation, number and layout of virtual desktops.") | 31 | ConfigModule.quickHelp: i18n("This module lets you configure the navigation, number and layout of virtual desktops.") | ||
32 | 32 | | |||
33 | Connections { | 33 | Connections { | ||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | |||||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | view: ListView { | 121 | view: ListView { | ||
122 | id: desktopsList | 122 | id: desktopsList | ||
123 | 123 | | |||
124 | model: kcm.desktopsModel.ready ? kcm.desktopsModel : null | 124 | model: kcm.desktopsModel.ready ? kcm.desktopsModel : null | ||
125 | 125 | | |||
126 | section.property: "DesktopRow" | 126 | section.property: "DesktopRow" | ||
127 | section.delegate: Kirigami.AbstractListItem { | 127 | section.delegate: Kirigami.ListSectionHeader { | ||
128 | width: desktopsList.width | 128 | width: desktopsList.width | ||
129 | 129 | label: i18n("Row %1", section) | |||
130 | backgroundColor: Kirigami.Theme.backgroundColor | | |||
131 | Kirigami.Theme.inherit: false | | |||
132 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | | |||
133 | | ||||
134 | hoverEnabled: false | | |||
135 | supportsMouseEvents: false | | |||
136 | | ||||
137 | Kirigami.Heading { | | |||
138 | level: 2 | | |||
139 | text: i18n("Row %1", section) | | |||
140 | } | 130 | } | ||
141 | } | 131 | } | ||
142 | 132 | | |||
143 | delegate: Kirigami.DelegateRecycler { | 133 | delegate: Kirigami.DelegateRecycler { | ||
144 | width: desktopsList.width | 134 | width: desktopsList.width | ||
145 | 135 | | |||
146 | sourceComponent: desktopsListItemComponent | 136 | sourceComponent: desktopsListItemComponent | ||
147 | } | 137 | } | ||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |