[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-desktop/kcm-redesign/cursorTheme] kcms/cursortheme/package/contents/ui: flexible space aroun
From: Marco Martin <null () kde ! org>
Date: 2017-10-31 19:59:11
Message-ID: E1e9cgp-0007WN-97 () code ! kde ! org
[Download RAW message or body]
Git commit 57b947b5b1e447f44251dfb950f337cb5110361d by Marco Martin.
Committed on 31/10/2017 at 19:58.
Pushed by mart into branch 'kcm-redesign/cursorTheme'.
flexible space around the grid view
M +8 -1 kcms/cursortheme/package/contents/ui/GridViewPage.qml
https://commits.kde.org/plasma-desktop/57b947b5b1e447f44251dfb950f337cb5110=
361d
diff --git a/kcms/cursortheme/package/contents/ui/GridViewPage.qml b/kcms/c=
ursortheme/package/contents/ui/GridViewPage.qml
index 0d5bf736..e6c8a3e2 100644
--- a/kcms/cursortheme/package/contents/ui/GridViewPage.qml
+++ b/kcms/cursortheme/package/contents/ui/GridViewPage.qml
@@ -23,6 +23,8 @@ import org.kde.kirigami 2.2 as Kirigami
=
=
Kirigami.Page {
+ id: root
+
implicitWidth: Kirigami.Units.gridUnit * 20
implicitHeight: Kirigami.Units.gridUnit * 20
=
@@ -35,7 +37,12 @@ Kirigami.Page {
=
QtControls.ScrollView {
id: scroll
- anchors.fill: parent
+ anchors {
+ top: parent.top
+ bottom: parent.bottom
+ horizontalCenter: parent.horizontalCenter
+ }
+ width: Math.floor((root.width - Kirigami.Units.gridUnit*2) / view.=
cellWidth) * view.cellWidth + Kirigami.Units.gridUnit*2
activeFocusOnTab: false
=
GridView {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic