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