Diffstat (limited to 'noncore/todayplugins/fortune/fortunepluginwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginwidget.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.cpp b/noncore/todayplugins/fortune/fortunepluginwidget.cpp index c3ee546..c147567 100644 --- a/noncore/todayplugins/fortune/fortunepluginwidget.cpp +++ b/noncore/todayplugins/fortune/fortunepluginwidget.cpp | |||
@@ -15,20 +15,23 @@ | |||
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "fortunepluginwidget.h" | 17 | #include "fortunepluginwidget.h" |
18 | 18 | ||
19 | /* OPIE */ | ||
20 | #include <opie2/odebug.h> | ||
19 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
20 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | using namespace Opie::Core; | ||
24 | using namespace Opie::Ui; | ||
21 | 25 | ||
26 | /* QT */ | ||
22 | #include <qvaluelist.h> | 27 | #include <qvaluelist.h> |
23 | #include <qtl.h> | 28 | #include <qtl.h> |
24 | #include <qstring.h> | 29 | #include <qstring.h> |
25 | #include <qscrollview.h> | 30 | #include <qscrollview.h> |
26 | #include <qobject.h> | 31 | #include <qobject.h> |
27 | #include <qlayout.h> | 32 | #include <qlayout.h> |
28 | 33 | ||
29 | using namespace Opie::Core; | ||
30 | using namespace Opie::Ui; | ||
31 | FortunePluginWidget::FortunePluginWidget( QWidget *parent, const char* name ) | 34 | FortunePluginWidget::FortunePluginWidget( QWidget *parent, const char* name ) |
32 | : QWidget( parent, name ) | 35 | : QWidget( parent, name ) |
33 | { | 36 | { |
34 | 37 | ||
@@ -66,9 +69,9 @@ void FortunePluginWidget::getFortune() { | |||
66 | connect(fortuneProcess, SIGNAL(receivedStdout(Opie::Core::OProcess*,char*,int) ), | 69 | connect(fortuneProcess, SIGNAL(receivedStdout(Opie::Core::OProcess*,char*,int) ), |
67 | this, SLOT(slotStdOut(Opie::Core::OProcess*,char*,int) ) ); | 70 | this, SLOT(slotStdOut(Opie::Core::OProcess*,char*,int) ) ); |
68 | 71 | ||
69 | if(!fortuneProcess->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { | 72 | if(!fortuneProcess->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { |
70 | qWarning("could not start :("); | 73 | owarn << "could not start :(" << oendl; |
71 | fortune->setText( QString("Failed to obtain fortune.") ); | 74 | fortune->setText( QString("Failed to obtain fortune.") ); |
72 | delete fortuneProcess; | 75 | delete fortuneProcess; |
73 | fortuneProcess = 0; | 76 | fortuneProcess = 0; |
74 | } | 77 | } |