From 6694cbabbf905ede781f430d6ec7587c79f94de9 Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Date: Wed, 5 Jun 2013 20:21:43 +0200
Subject: [PATCH] Fix missing headerview gap when not showing frame in
 TableView

Tested on all three platforms and looks better.

Change-Id: I8a68dfc7fe97a05c4313ac10de2f93dabec5a964
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
---
 src/controls/TableView.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml
index c02123918..17b2b1863 100644
--- a/src/controls/TableView.qml
+++ b/src/controls/TableView.qml
@@ -607,7 +607,7 @@ ScrollView {
             anchors.topMargin: viewport.anchors.topMargin
             anchors.leftMargin: viewport.anchors.leftMargin
             anchors.margins: viewport.anchors.margins
-            anchors.rightMargin: __scroller.rightMargin +
+            anchors.rightMargin: (frameVisible ? __scroller.rightMargin : 0) +
                                  (__scroller.outerFrame && __scrollBarTopMargin ? 0 : __verticalScrollBar.width
                                                           + __scroller.scrollBarSpacing + root.__style.padding.right)
 
-- 
GitLab