summaryrefslogtreecommitdiffstats
path: root/src/controls/Private/BasicTableView.qml
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@theqtcompany.com>2015-06-04 10:09:36 +0300
committerJoni Poikelin <joni.poikelin@theqtcompany.com>2015-06-04 10:21:18 +0000
commit1c49a841d9daa7bc498e35b8cc0331e04e96ec70 (patch)
tree1ce24d4a956300a28e47aba137a531da40c7e8d5 /src/controls/Private/BasicTableView.qml
parente648611e6d64891f1723a0e32c783c8d5f994de1 (diff)
Fix TableView extra row with headerVisible:false
Task-number: QTBUG-46468 Change-Id: I6718bc860f26a287ff4580e4844aec225c0f70b7 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/controls/Private/BasicTableView.qml')
-rw-r--r--src/controls/Private/BasicTableView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Private/BasicTableView.qml b/src/controls/Private/BasicTableView.qml
index 518f43afc..4e1c45ab0 100644
--- a/src/controls/Private/BasicTableView.qml
+++ b/src/controls/Private/BasicTableView.qml
@@ -346,7 +346,7 @@ ScrollView {
frameVisible: true
__scrollBarTopMargin: (__style && __style.transientScrollBars || Qt.platform.os === "osx") ? headerrow.height : 0
- __viewTopMargin: headerrow.height
+ __viewTopMargin: headerVisible ? headerrow.height : 0
/*! \internal
Use this to display user-friendly messages in TableView and TreeView common functions.