summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/shadedlistitem.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/shadedlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/shadedlistitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/zsafe/shadedlistitem.cpp b/noncore/apps/zsafe/shadedlistitem.cpp
index 72c6261..7f340f9 100644
--- a/noncore/apps/zsafe/shadedlistitem.cpp
+++ b/noncore/apps/zsafe/shadedlistitem.cpp
@@ -43,25 +43,25 @@ ShadedListItem::ShadedListItem(int index, QListView *parent, QListViewItem *afte
oddRow = (index % 2 != 0);
}
ShadedListItem::~ShadedListItem()
{
}
void ShadedListItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
{
QColorGroup colors(cg);
-#if QT_VERSION >=300
+#if QT_VERSION >= 0x030000
const QColorGroup::ColorRole crole = QColorGroup::Base;
// const QWidget::BackgroundMode bgmode = lv->viewport()->backgroundMode();
// const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode(bgmode);
#else
const QColorGroup::ColorRole crole = QColorGroup::Base;
#endif
if (oddRow) {
colors.setColor(crole, *ZSafe::oddRowColor);
}
else {
colors.setColor(crole, *ZSafe::evenRowColor);
}