summaryrefslogtreecommitdiffstats
path: root/src/tastylistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tastylistview.cpp')
-rw-r--r--src/tastylistview.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/tastylistview.cpp b/src/tastylistview.cpp
index 6aef4c7..dabaf4c 100644
--- a/src/tastylistview.cpp
+++ b/src/tastylistview.cpp
@@ -22,7 +22,6 @@
#include "tastylistview.h"
#include "misc.h"
-#include <tdeversion.h>
#include <kstringhandler.h>
#include <tqimage.h>
#include <tqpainter.h>
@@ -466,15 +465,7 @@ void TastyListViewItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int
TQColor fillColor, textColor;
-# if TDE_VERSION < TDE_MAKE_VERSION(3,3,91)
-# define BackgroundColor backgroundColor()
-# else
-# define BackgroundColor backgroundColor(0)
-# endif
-
-
- fillColor = isSelected() ? cg.highlight() : BackgroundColor;
-
+ fillColor = isSelected() ? cg.highlight() : backgroundColor(0);
textColor = isSelected() ? cg.highlightedText() : cg.text();
if( !listView() )
@@ -498,7 +489,7 @@ void TastyListViewItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int
}
else if( isSelected() && !lv->hasFocus() )
- fillColor = alphaBlendColors( fillColor, BackgroundColor, 150);
+ fillColor = alphaBlendColors( fillColor, backgroundColor(0), 150);
TQFontMetrics fm( font );
widthChanged(column);