From d2410a5ba10df46f7c2ba66db63815ede0ef2320 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig <jens.bache-wiig@digia.com> Date: Sun, 26 May 2013 09:20:30 -0700 Subject: [PATCH] Style polish Adding the right margin of TableView and adding some extra margins makes the example look a bit more polished Change-Id: If969230fe2e1068a42f92708df311550f88fb060 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> --- examples/quick/controls/gallery/content/ModelView.qml | 2 +- src/controls/TableView.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/quick/controls/gallery/content/ModelView.qml b/examples/quick/controls/gallery/content/ModelView.qml index 237604e5d..e6a6040fb 100644 --- a/examples/quick/controls/gallery/content/ModelView.qml +++ b/examples/quick/controls/gallery/content/ModelView.qml @@ -51,7 +51,7 @@ Item { width: 600 height: 300 anchors.fill: parent - anchors.margins: Qt.platform.os === "mac" ? 12 : 0 + anchors.margins: Qt.platform.os === "mac" ? 12 : 6 // XmlListModel { // id: flickerModel diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml index 6efee30db..ca0df45a1 100644 --- a/src/controls/TableView.qml +++ b/src/controls/TableView.qml @@ -515,7 +515,7 @@ ScrollView { anchors.margins: viewport.anchors.margins anchors.rightMargin: __scroller.rightMargin + (__scroller.outerFrame && __scrollBarTopMargin ? 0 : __verticalScrollBar.width - + __scroller.scrollBarSpacing) + + __scroller.scrollBarSpacing + root.__style.padding.right) anchors.left: parent.left anchors.right: parent.right -- GitLab