Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/package/contents/ui/main.qml
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Line(s) | 178 | Connections { | |||
---|---|---|---|---|---|
179 | target: kcm | 179 | target: kcm | ||
180 | onNeedsSaveChanged: { | 180 | onNeedsSaveChanged: { | ||
181 | if (!needsSave) { | 181 | if (!needsSave) { | ||
182 | resetCheckbox.checked = false; | 182 | resetCheckbox.checked = false; | ||
183 | } | 183 | } | ||
184 | } | 184 | } | ||
185 | } | 185 | } | ||
186 | RowLayout { | 186 | RowLayout { | ||
187 | QtControls.Button { | ||||
188 | anchors.left: parent.left | ||||
189 | text: i18n("Get New Looks...") | ||||
190 | iconName: "get-hot-new-stuff" | ||||
191 | onClicked: kcm.getNewStuff(); | ||||
192 | } | ||||
193 | Item { | ||||
194 | Layout.fillWidth: true | ||||
195 | } | ||||
187 | QtControls.CheckBox { | 196 | QtControls.CheckBox { | ||
188 | id: resetCheckbox | 197 | id: resetCheckbox | ||
189 | checked: kcm.resetDefaultLayout | 198 | checked: kcm.resetDefaultLayout | ||
190 | text: i18n("Use Desktop Layout from theme") | 199 | text: i18n("Use Desktop Layout from theme") | ||
191 | onCheckedChanged: kcm.resetDefaultLayout = checked; | 200 | onCheckedChanged: kcm.resetDefaultLayout = checked; | ||
192 | } | 201 | } | ||
193 | Item { | | |||
194 | Layout.fillWidth: true | | |||
195 | } | | |||
196 | QtControls.Button { | | |||
197 | anchors.right: parent.right | | |||
198 | text: i18n("Get New Looks...") | | |||
199 | iconName: "get-hot-new-stuff" | | |||
200 | onClicked: kcm.getNewStuff(); | | |||
201 | } | | |||
202 | } | 202 | } | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | Window { | 205 | Window { | ||
206 | id: previewWindow | 206 | id: previewWindow | ||
207 | property alias url: previewImage.source | 207 | property alias url: previewImage.source | ||
208 | color: Qt.rgba(0, 0, 0, 0.7) | 208 | color: Qt.rgba(0, 0, 0, 0.7) | ||
209 | MouseArea { | 209 | MouseArea { | ||
Show All 24 Lines |