author | sandman <sandman> | 2002-06-21 00:30:56 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-21 00:30:56 (UTC) |
commit | b5951d300371cbe78fa94163aa882419e3d08d4b (patch) (side-by-side diff) | |
tree | cc52dbcba8666a86f38585b6e5032c31324e60bf | |
parent | 56649b4725b2e98d786d06f83d4b3281ea1090fb (diff) | |
download | opie-b5951d300371cbe78fa94163aa882419e3d08d4b.zip opie-b5951d300371cbe78fa94163aa882419e3d08d4b.tar.gz opie-b5951d300371cbe78fa94163aa882419e3d08d4b.tar.bz2 |
Fix for background drawing to make taskbar look nice with liquid style
-rw-r--r-- | core/launcher/inputmethods.cpp | 2 | ||||
-rw-r--r-- | core/launcher/mrulist.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/core/launcher/inputmethods.cpp b/core/launcher/inputmethods.cpp index da98e07..ac72b02 100644 --- a/core/launcher/inputmethods.cpp +++ b/core/launcher/inputmethods.cpp @@ -65,24 +65,26 @@ static const char * tri_xpm[]={ "........."}; static const int inputWidgetStyle = QWidget::WStyle_Customize | QWidget::WStyle_Tool | QWidget::WStyle_StaysOnTop | QWidget::WGroupLeader; InputMethods::InputMethods( QWidget *parent ) : QWidget( parent, "InputMethods", WStyle_Tool | WStyle_Customize ) { method = NULL; + setBackgroundMode ( PaletteBackground ); + QHBoxLayout *hbox = new QHBoxLayout( this ); kbdButton = new QToolButton( this ); kbdButton->setFocusPolicy(NoFocus); kbdButton->setToggleButton( TRUE ); kbdButton->setFixedHeight( 17 ); kbdButton->setFixedWidth( 32 ); kbdButton->setAutoRaise( TRUE ); kbdButton->setUsesBigPixmap( TRUE ); hbox->addWidget( kbdButton ); connect( kbdButton, SIGNAL(toggled(bool)), this, SLOT(showKbd(bool)) ); 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; |