summaryrefslogtreecommitdiff
path: root/core/launcher/taskbar.cpp
Unidiff
Diffstat (limited to 'core/launcher/taskbar.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/taskbar.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp
index 46bcdb3..7d1aaf1 100644
--- a/core/launcher/taskbar.cpp
+++ b/core/launcher/taskbar.cpp
@@ -191,11 +191,15 @@ TaskBar::TaskBar() : QHBox(0, 0, WStyle_Customize | WStyle_Tool | WStyle_StaysOn
191 191
192void TaskBar::setStatusMessage( const QString &text ) 192void TaskBar::setStatusMessage( const QString &text )
193{ 193{
194 if ( !text.isEmpty() ) {
194 label->setText( text ); 195 label->setText( text );
195 stack->raiseWidget( label ); 196 stack->raiseWidget( label );
196 if ( sysTray && ( label->fontMetrics().width( text ) > label->width() ) ) 197 if ( sysTray && ( label->fontMetrics().width( text ) > label->width() ) )
197 sysTray->hide(); 198 sysTray->hide();
198 clearer->start( 3000 ); 199 clearer->start( 3000, TRUE );
200 } else {
201 clearStatusBar();
202 }
199} 203}
200 204
201void TaskBar::clearStatusBar() 205void TaskBar::clearStatusBar()
@@ -212,7 +216,7 @@ void TaskBar::startWait()
212 waitTimer->start( 10 * 1000, true ); 216 waitTimer->start( 10 * 1000, true );
213} 217}
214 218
215void TaskBar::stopWait(const QString& app) 219void TaskBar::stopWait(const QString& /*app*/)
216{ 220{
217 waitTimer->stop(); 221 waitTimer->stop();
218 //mru->addTask(sm->execToLink(app)); 222 //mru->addTask(sm->execToLink(app));
@@ -273,9 +277,12 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data )
273 inputMethods->showInputMethod(); 277 inputMethods->showInputMethod();
274 } else if ( msg == "reloadInputMethods()" ) { 278 } else if ( msg == "reloadInputMethods()" ) {
275 inputMethods->loadInputMethods(); 279 inputMethods->loadInputMethods();
280 } else if ( msg == "reloadApps()" ) {
281 sm->reloadApps();
276 } else if ( msg == "reloadApplets()" ) { 282 } else if ( msg == "reloadApplets()" ) {
277 sysTray->clearApplets(); 283 sysTray->clearApplets();
278 sysTray->addApplets(); 284 sysTray->addApplets();
285 sm->reloadApplets();
279 } else if ( msg == "soundAlarm()" ) { 286 } else if ( msg == "soundAlarm()" ) {
280 Desktop::soundAlarm(); 287 Desktop::soundAlarm();
281 } 288 }