summaryrefslogtreecommitdiff
Unidiff
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
@@ -35,16 +35,18 @@
35#include <qpe/qcopenvelope_qws.h> 35#include <qpe/qcopenvelope_qws.h>
36#include <qpe/global.h> 36#include <qpe/global.h>
37#include <qwindowsystem_qws.h> 37#include <qwindowsystem_qws.h>
38#include "runningappbar.h" 38#include "runningappbar.h"
39 39
40RunningAppBar::RunningAppBar(QWidget* parent) 40RunningAppBar::RunningAppBar(QWidget* parent)
41 : QFrame(parent), m_AppLnkSet(0L), m_SelectedAppIndex(-1) 41 : QFrame(parent), m_AppLnkSet(0L), m_SelectedAppIndex(-1)
42{ 42{
43 setBackgroundMode( PaletteBackground );
44
43 m_AppLnkSet = new AppLnkSet( QPEApplication::qpeDir() + "apps" ); 45 m_AppLnkSet = new AppLnkSet( QPEApplication::qpeDir() + "apps" );
44 46
45 connect(qwsServer, SIGNAL(newChannel(const QString&)), this, SLOT(newQcopChannel(const QString&))); 47 connect(qwsServer, SIGNAL(newChannel(const QString&)), this, SLOT(newQcopChannel(const QString&)));
46 connect(qwsServer, SIGNAL(removedChannel(const QString&)), this, SLOT(removedQcopChannel(const QString&))); 48 connect(qwsServer, SIGNAL(removedChannel(const QString&)), this, SLOT(removedQcopChannel(const QString&)));
47 QCopChannel* channel = new QCopChannel( "QPE/System", this ); 49 QCopChannel* channel = new QCopChannel( "QPE/System", this );
48 connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), 50 connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
49 this, SLOT(received(const QCString&, const QByteArray&)) ); 51 this, SLOT(received(const QCString&, const QByteArray&)) );
50 52
@@ -163,27 +165,27 @@ void RunningAppBar::mouseReleaseEvent(QMouseEvent *e)
163void RunningAppBar::paintEvent( QPaintEvent * ) 165void RunningAppBar::paintEvent( QPaintEvent * )
164{ 166{
165 QPainter p( this ); 167 QPainter p( this );
166 AppLnk *curApp; 168 AppLnk *curApp;
167 int x = 0; 169 int x = 0;
168 int y = (height() - AppLnk::smallIconSize()) / 2; 170 int y = (height() - AppLnk::smallIconSize()) / 2;
169 int i = 0; 171 int i = 0;
170 172
171 p.fillRect( 0, 0, width(), height(), colorGroup().background() ); 173 //p.fillRect( 0, 0, width(), height(), colorGroup().background() );
172 174
173 QListIterator<AppLnk> it(m_AppList); 175 QListIterator<AppLnk> it(m_AppList);
174 176
175 for (; it.current(); i++, ++it ) { 177 for (; it.current(); i++, ++it ) {
176 if ( x + spacing <= width() ) { 178 if ( x + spacing <= width() ) {
177 curApp = it.current(); 179 curApp = it.current();
178 if ( (int)i == m_SelectedAppIndex ) 180 if ( (int)i == m_SelectedAppIndex )
179 p.fillRect( x, y, spacing, curApp->pixmap().height()+1, colorGroup().highlight() ); 181 p.fillRect( x, y, spacing, curApp->pixmap().height()+1, colorGroup().highlight() );
180 else 182 else
181 p.eraseRect( x, y, spacing, curApp->pixmap().height()+1 ); 183 // p.eraseRect( x, y, spacing, curApp->pixmap().height()+1 );
182 p.drawPixmap( x, y, curApp->pixmap() ); 184 p.drawPixmap( x, y, curApp->pixmap() );
183 x += spacing; 185 x += spacing;
184 } 186 }
185 } 187 }
186} 188}
187 189
188QSize RunningAppBar::sizeHint() const 190QSize RunningAppBar::sizeHint() const
189{ 191{