summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-05-07 15:29:08 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-05-07 15:32:16 (GMT)
commit36932e49769726a28a7ffbc3d5a11b4bffb9952f (patch)
tree447b3327d1da6864f85fabf384f783dfc1275720 /src
parent4b5355b0a708e9dfa00f358cc932b6c314d832e7 (diff)
downloadQt-36932e49769726a28a7ffbc3d5a11b4bffb9952f.zip
Qt-36932e49769726a28a7ffbc3d5a11b4bffb9952f.tar.gz
Qt-36932e49769726a28a7ffbc3d5a11b4bffb9952f.tar.bz2
spanning columns did not have ViewItemPosition QStyleOptionViewItemV4::OnlyOne set
The new autotest tests lots of the flags of the QStyleOption Reviewed-by: Thierry Task-number: 252616
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemviews/qtreeview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp
index ab03fea..f6c5cf0 100644
--- a/src/gui/itemviews/qtreeview.cpp
+++ b/src/gui/itemviews/qtreeview.cpp
@@ -1544,7 +1544,7 @@ void QTreeView::drawRow(QPainter *painter, const QStyleOptionViewItem &option,
? logicalIndexBeforeLeft
: logicalIndices.at(currentLogicalSection - 1);
if (columnCount == 1 || (nextLogicalSection == 0 && prevLogicalSection == -1)
- || (headerSection == 0 && nextLogicalSection == -1))
+ || (headerSection == 0 && nextLogicalSection == -1) || spanning)
opt.viewItemPosition = QStyleOptionViewItemV4::OnlyOne;
else if (headerSection == 0 || (nextLogicalSection != 0 && prevLogicalSection == -1))
opt.viewItemPosition = QStyleOptionViewItemV4::Beginning;