Remove use of TDE_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1933607ace)
r14.1.x
Michele Calgaro 5 days ago
parent 78a98ddc7e
commit 702d3c352e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

Loading…
Cancel
Save