summaryrefslogtreecommitdiffstats
path: root/kdeui/kjanuswidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-02 21:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-02 21:42:31 +0000
commit9cddb219d99a267ae03b4b38391833ea3e753044 (patch)
tree2533a906d159727feded1d0a3c648f183411839d /kdeui/kjanuswidget.cpp
parent585650ee25cbfca3e179f2e7c20bf4339a9fef9b (diff)
downloadtdelibs-9cddb219d99a267ae03b4b38391833ea3e753044.tar.gz
tdelibs-9cddb219d99a267ae03b4b38391833ea3e753044.zip
Reverted a couple changes that should not have been made to vanilla KDE/Trinity
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1171149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kjanuswidget.cpp')
-rw-r--r--kdeui/kjanuswidget.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/kdeui/kjanuswidget.cpp b/kdeui/kjanuswidget.cpp
index 7f34dc5c1..4fb398395 100644
--- a/kdeui/kjanuswidget.cpp
+++ b/kdeui/kjanuswidget.cpp
@@ -1069,13 +1069,17 @@ int KJanusWidget::IconListItem::expandMinimumWidth( int width )
void KJanusWidget::IconListItem::highlight( bool erase )
-{
+{
+ // FIXME: Add configuration option to disable highlighting
+ // For now, always disable highlighting
+ erase = true;
+
TQRect r = listBox()->itemRect( this );
- r.addCoords( 1, 1, -1, -1 );
-
+ r.addCoords( 1, 1, -1, -1 );
+
TQPainter p( listBox()->viewport() );
p.setClipRegion( r );
-
+
const TQColorGroup &cg = listBox()->colorGroup();
if ( erase )
{
@@ -1089,9 +1093,9 @@ void KJanusWidget::IconListItem::highlight( bool erase )
p.drawRect( r );
p.setPen( cg.highlight().dark( 140 ) );
- p.drawRect( r );
+ p.drawRect( r );
}
-
+
p.setPen( cg.foreground() );
p.translate( r.x() - 1, r.y() - 1 );
paintContents( &p );