From kde-commits Tue Oct 31 19:59:11 2017 From: Marco Martin Date: Tue, 31 Oct 2017 19:59:11 +0000 To: kde-commits Subject: [plasma-desktop/kcm-redesign/cursorTheme] kcms/cursortheme/package/contents/ui: flexible space aroun Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=150947996426831 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 {