Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp index 3eaade4..6d53a91 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <qlayout.h> | 22 | #include <qlayout.h> |
23 | #include <qlineedit.h> | 23 | #include <qlineedit.h> |
24 | #include <qregexp.h> | 24 | #include <qregexp.h> |
25 | #include <qtimer.h> | ||
25 | 26 | ||
26 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
27 | #include <qpe/timestring.h> | 28 | #include <qpe/timestring.h> |
@@ -38,6 +39,7 @@ extern "C" { | |||
38 | StockTickerPluginWidget::StockTickerPluginWidget( QWidget *parent, const char* name) | 39 | StockTickerPluginWidget::StockTickerPluginWidget( QWidget *parent, const char* name) |
39 | : QWidget(parent, name ) { | 40 | : QWidget(parent, name ) { |
40 | init(); | 41 | init(); |
42 | startTimer(1000); | ||
41 | } | 43 | } |
42 | 44 | ||
43 | StockTickerPluginWidget::~StockTickerPluginWidget() { | 45 | StockTickerPluginWidget::~StockTickerPluginWidget() { |
@@ -237,3 +239,8 @@ void StockTickerPluginWidget::DefProxy(void) { | |||
237 | } | 239 | } |
238 | } | 240 | } |
239 | } | 241 | } |
242 | |||
243 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { | ||
244 | killTimer(e->timerId()); | ||
245 | doStocks(); | ||
246 | } | ||