summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@theqtcompany.com>2016-01-13 10:40:13 +0200
committerJoni Poikelin <joni.poikelin@theqtcompany.com>2016-01-18 12:49:13 +0000
commit2d0018b0b5570d1c1edd3919a9befcf34c62b873 (patch)
treefdd66050d1b35ce024cedb417d2a842c355fc2f1
parent943247193cf976ec74e24533942efbd18ae261e0 (diff)
downloadqtquickcontrols-2d0018b0b5570d1c1edd3919a9befcf34c62b873.tar.gz
Fix dragging of TableView headers with invisible header columns
Task-number: QTBUG-50416 Change-Id: Ic7aa92ed5dd3e6f47cb3986fe3965487b7edd48a Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-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 66dec512..afec226d 100644
--- a/src/controls/Private/BasicTableView.qml
+++ b/src/controls/Private/BasicTableView.qml
@@ -677,7 +677,7 @@ ScrollView {
onPositionChanged: {
if (drag.active && modelData.movable && pressed && columnCount > 1) { // only do this while dragging
for (var h = columnCount-1 ; h >= 0 ; --h) {
- if (drag.target.x + headerRowDelegate.width/2 > headerRow.children[h].x) {
+ if (headerRow.children[h].visible && drag.target.x + headerRowDelegate.width/2 > headerRow.children[h].x) {
repeater.targetIndex = h
break
}