-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index 9798e8e..b7b5307 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp | |||
@@ -24,6 +24,8 @@ | |||
24 | #include <kiconloader.h> | 24 | #include <kiconloader.h> |
25 | #include <kmessagebox.h> | 25 | #include <kmessagebox.h> |
26 | 26 | ||
27 | #include <qstatusbar.h> | ||
28 | |||
27 | #ifndef PWM_EMBEDDED | 29 | #ifndef PWM_EMBEDDED |
28 | #include <kmenubar.h> | 30 | #include <kmenubar.h> |
29 | #include <kstatusbar.h> | 31 | #include <kstatusbar.h> |
@@ -1358,17 +1360,15 @@ void PwM::copyToClipboard(const QString &s) | |||
1358 | 1360 | ||
1359 | } | 1361 | } |
1360 | 1362 | ||
1363 | |||
1361 | void PwM::showStatMsg(const QString &msg) | 1364 | void PwM::showStatMsg(const QString &msg) |
1362 | { | 1365 | { |
1363 | #ifndef PWM_EMBEDDED | 1366 | #ifdef DESKTOP_VERSION |
1364 | KStatusBar *statBar = statusBar(); | 1367 | statusBar()->message(msg, STATUSBAR_MSG_TIMEOUT * 1000); |
1365 | statBar->message(msg, STATUSBAR_MSG_TIMEOUT * 1000); | ||
1366 | #else | 1368 | #else |
1367 | qDebug("Statusbar : %s",msg.latin1()); | 1369 | qDebug("Statusbar : %s",msg.latin1()); |
1368 | #ifndef DESKTOP_VERSION | ||
1369 | Global::statusMessage(msg); | 1370 | Global::statusMessage(msg); |
1370 | #endif | 1371 | #endif |
1371 | #endif | ||
1372 | } | 1372 | } |
1373 | 1373 | ||
1374 | void PwM::focusInEvent(QFocusEvent *e) | 1374 | void PwM::focusInEvent(QFocusEvent *e) |