-rw-r--r-- | core/launcher/taskbar.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp index 1feae4a..46bcdb3 100644 --- a/core/launcher/taskbar.cpp +++ b/core/launcher/taskbar.cpp | |||
@@ -48,12 +48,14 @@ | |||
48 | #if defined( Q_WS_QWS ) | 48 | #if defined( Q_WS_QWS ) |
49 | #include <qwsdisplay_qws.h> | 49 | #include <qwsdisplay_qws.h> |
50 | #include <qgfx_qws.h> | 50 | #include <qgfx_qws.h> |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | 53 | ||
54 | using namespace Opie; | ||
55 | |||
54 | #define FACTORY(T) \ | 56 | #define FACTORY(T) \ |
55 | static QWidget *new##T( bool maximized ) { \ | 57 | static QWidget *new##T( bool maximized ) { \ |
56 | QWidget *w = new T( 0, "test", QWidget::WDestructiveClose | QWidget::WGroupLeader ); \ | 58 | QWidget *w = new T( 0, "test", QWidget::WDestructiveClose | QWidget::WGroupLeader ); \ |
57 | if ( maximized ) { \ | 59 | if ( maximized ) { \ |
58 | if ( qApp->desktop()->width() <= 350 ) { \ | 60 | if ( qApp->desktop()->width() <= 350 ) { \ |
59 | w->showMaximized(); \ | 61 | w->showMaximized(); \ |
@@ -278,13 +280,19 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data ) | |||
278 | Desktop::soundAlarm(); | 280 | Desktop::soundAlarm(); |
279 | } | 281 | } |
280 | else if ( msg == "setLed(int,bool)" ) { | 282 | else if ( msg == "setLed(int,bool)" ) { |
281 | int led, status; | 283 | int led, status; |
282 | stream >> led >> status; | 284 | stream >> led >> status; |
283 | 285 | ||
284 | ODevice::inst ( )-> setLed ( led, status ? OLED_BlinkSlow : OLED_Off ); | 286 | QValueList <OLed> ll = ODevice::inst ( )-> ledList ( ); |
287 | if ( ll. count ( )){ | ||
288 | OLed l = ll. contains ( Led_Mail ) ? Led_Mail : ll [0]; | ||
289 | bool canblink = ODevice::inst ( )-> ledStateList ( l ). contains ( Led_BlinkSlow ); | ||
290 | |||
291 | ODevice::inst ( )-> setLedState ( l, status ? ( canblink ? Led_BlinkSlow : Led_On ) : Led_Off ); | ||
292 | } | ||
285 | } | 293 | } |
286 | } | 294 | } |
287 | 295 | ||
288 | QWidget *TaskBar::calibrate(bool) | 296 | QWidget *TaskBar::calibrate(bool) |
289 | { | 297 | { |
290 | #ifdef Q_WS_QWS | 298 | #ifdef Q_WS_QWS |