summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-09-11 10:48:38 (UTC)
committer harlekin <harlekin>2002-09-11 10:48:38 (UTC)
commit8699473dd4e21242b1c98192c2dd38655177762b (patch) (side-by-side diff)
tree2fe54c8c306eacbf91e8d06b602d332d092bff20
parent6013fac8a6ea871453565faf0f8b51c62465cf71 (diff)
downloadopie-8699473dd4e21242b1c98192c2dd38655177762b.zip
opie-8699473dd4e21242b1c98192c2dd38655177762b.tar.gz
opie-8699473dd4e21242b1c98192c2dd38655177762b.tar.bz2
looks now nice on liquid - again
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/runningappbar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/launcher/runningappbar.cpp b/core/launcher/runningappbar.cpp
index 298f671..b830d1b 100644
--- a/core/launcher/runningappbar.cpp
+++ b/core/launcher/runningappbar.cpp
@@ -31,24 +31,26 @@
#include <qpainter.h>
#include "qprocess.h"
#include <qpe/qpeapplication.h>
#include <qpe/applnk.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/global.h>
#include <qwindowsystem_qws.h>
#include "runningappbar.h"
RunningAppBar::RunningAppBar(QWidget* parent)
: QFrame(parent), m_AppLnkSet(0L), m_SelectedAppIndex(-1)
{
+ setBackgroundMode( PaletteBackground );
+
m_AppLnkSet = new AppLnkSet( QPEApplication::qpeDir() + "apps" );
connect(qwsServer, SIGNAL(newChannel(const QString&)), this, SLOT(newQcopChannel(const QString&)));
connect(qwsServer, SIGNAL(removedChannel(const QString&)), this, SLOT(removedQcopChannel(const QString&)));
QCopChannel* channel = new QCopChannel( "QPE/System", this );
connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
this, SLOT(received(const QCString&, const QByteArray&)) );
spacing = AppLnk::smallIconSize()+3;
}
RunningAppBar::~RunningAppBar() {
@@ -159,35 +161,35 @@ void RunningAppBar::mouseReleaseEvent(QMouseEvent *e)
update();
}
}
void RunningAppBar::paintEvent( QPaintEvent * )
{
QPainter p( this );
AppLnk *curApp;
int x = 0;
int y = (height() - AppLnk::smallIconSize()) / 2;
int i = 0;
- p.fillRect( 0, 0, width(), height(), colorGroup().background() );
+ //p.fillRect( 0, 0, width(), height(), colorGroup().background() );
QListIterator<AppLnk> it(m_AppList);
for (; it.current(); i++, ++it ) {
if ( x + spacing <= width() ) {
curApp = it.current();
if ( (int)i == m_SelectedAppIndex )
p.fillRect( x, y, spacing, curApp->pixmap().height()+1, colorGroup().highlight() );
else
- p.eraseRect( x, y, spacing, curApp->pixmap().height()+1 );
+ // p.eraseRect( x, y, spacing, curApp->pixmap().height()+1 );
p.drawPixmap( x, y, curApp->pixmap() );
x += spacing;
}
}
}
QSize RunningAppBar::sizeHint() const
{
return QSize( frameWidth(), AppLnk::smallIconSize()+frameWidth()*2+3 );
}
const int AppMonitor::RAISE_TIMEOUT_MS = 500;