summaryrefslogtreecommitdiff
path: root/src/gui/itemviews/qtableview.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-24 17:18:05 +0200
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-24 17:18:05 +0200
commit723dfce0f2af6d93d2c1b50f5e44ad3cf63e058c (patch)
treef8e1c8693aceea8f1d2fc03d9ad1555b0a441a27 /src/gui/itemviews/qtableview.cpp
parentf90d8f3fe7e39a20b93a2ddfe0704bc48f3bd5f9 (diff)
parentdab9d7c67ed2eda150c8da9e41db75f7eeeecd0d (diff)
downloadqt4-tools-723dfce0f2af6d93d2c1b50f5e44ad3cf63e058c.tar.gz
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Conflicts: src/gui/kernel/qapplication_x11.cpp
Diffstat (limited to 'src/gui/itemviews/qtableview.cpp')
-rw-r--r--src/gui/itemviews/qtableview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp
index 1d37b59dd7..c6762373b4 100644
--- a/src/gui/itemviews/qtableview.cpp
+++ b/src/gui/itemviews/qtableview.cpp
@@ -488,8 +488,7 @@ void QTableViewPrivate::drawCell(QPainter *painter, const QStyleOptionViewItemV4
opt.state |= QStyle::State_HasFocus;
}
- if (opt.features & QStyleOptionViewItemV2::Alternate)
- painter->fillRect(opt.rect, opt.palette.brush(QPalette::AlternateBase));
+ q->style()->drawPrimitive(QStyle::PE_PanelItemViewRow, &opt, painter, q);
if (const QWidget *widget = editorForIndex(index).editor) {
painter->save();