Commit ad5f2e33 authored by Jonathan Marten's avatar Jonathan Marten

Folder View previews dialogue: Improve visual layout

Differential Revision: https://phabricator.kde.org/D8617
parent c08d28a0
......@@ -46,28 +46,43 @@ ApplicationWindow {
id: previewPluginsModel
}
SystemPalette {
id: systemPalette;
colorGroup: SystemPalette.Active
}
ColumnLayout {
anchors.fill: parent
anchors.margins: 2*units.smallSpacing
ScrollView {
Rectangle {
Layout.fillWidth: true
Layout.fillHeight: true
color: systemPalette.base
ScrollView {
anchors.fill: parent
frameVisible: true
frameVisible: true
ListView {
model: previewPluginsModel
ListView {
model: previewPluginsModel
delegate: CheckBox {
Layout.leftMargin: units.smallSpacing
Layout.rightMargin: units.smallSpacing
delegate: CheckBox {
text: model.display
text: model.display
checked: model.checked
onCheckedChanged: model.checked = checked
checked: model.checked
onCheckedChanged: model.checked = checked
}
}
}
}
RowLayout {
Layout.margins: units.smallSpacing
Layout.alignment: (Qt.application.layoutDirection == Qt.LeftToRight) ? Qt.AlignRight : Qt.AlignLeft
layoutDirection: Qt.application.layoutDirection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment