summaryrefslogtreecommitdiff
path: root/core/launcher/mrulist.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/mrulist.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/mrulist.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/launcher/mrulist.cpp b/core/launcher/mrulist.cpp
index 5590d38..0530fd6 100644
--- a/core/launcher/mrulist.cpp
+++ b/core/launcher/mrulist.cpp
@@ -31,25 +31,25 @@
#include <qpopupmenu.h>
#include <qpainter.h>
#include <qwindowsystem_qws.h>
QList<MRUList> *MRUList::MRUListWidgets = NULL;
QList<AppLnk> *MRUList::task = NULL;
MRUList::MRUList( QWidget *parent )
: QFrame( parent ), selected(-1), oldsel(-1)
{
- setBackgroundMode( PaletteButton );
+ setBackgroundMode( PaletteBackground );
if (!MRUListWidgets)
MRUListWidgets = new QList<MRUList>;
if (!task)
task = new QList<AppLnk>;
MRUListWidgets->append( this );
}
MRUList::~MRUList()
{
if (MRUListWidgets)
MRUListWidgets->remove( this );
@@ -194,25 +194,26 @@ void MRUList::mouseReleaseEvent(QMouseEvent *)
}
}
void MRUList::paintEvent( QPaintEvent * )
{
QPainter p( this );
AppLnk *t;
int x = 0;
int y = (height() - 14) / 2;
int i = 0;
- p.fillRect( 0, 0, width(), height(), colorGroup().background() );
+// p.fillRect( 0, 0, width(), height(), colorGroup().background() );
+ erase ( );
if ( task ) {
QListIterator<AppLnk> it( *task );
for ( ; it.current(); i++, ++it ) {
if ( x + 15 <= width() ) {
t = it.current();
if ( (int)i == selected )
p.fillRect( x, y, 15, t->pixmap().height()+1, colorGroup().highlight() );
else if ( (int)i == oldsel )
p.eraseRect( x, y, 15, t->pixmap().height()+1 );
p.drawPixmap( x, y, t->pixmap() );
x += 15;