author | llornkcor <llornkcor> | 2002-11-01 16:11:54 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-01 16:11:54 (UTC) |
commit | f351da898f4dce9ad3fd8ee76d84912365dcb5ac (patch) (unidiff) | |
tree | cf131772846e5a3408a513f6432e83897b738328 | |
parent | 9e4d914ade0af86707531a80e93a870e52738ce6 (diff) | |
download | opie-f351da898f4dce9ad3fd8ee76d84912365dcb5ac.zip opie-f351da898f4dce9ad3fd8ee76d84912365dcb5ac.tar.gz opie-f351da898f4dce9ad3fd8ee76d84912365dcb5ac.tar.bz2 |
added timer delay
3 files changed, 11 insertions, 1 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp index baf8198..24c151b 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp | |||
@@ -54,5 +54,6 @@ QString StockTickerPlugin::appName() const { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | bool StockTickerPlugin::excludeFromRefresh() const { | 56 | bool StockTickerPlugin::excludeFromRefresh() const { |
57 | //return false; | ||
57 | return true; | 58 | return true; |
58 | } | 59 | } |
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 | } | ||
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h index 6524ae4..6a15f56 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h | |||
@@ -38,6 +38,8 @@ | |||
38 | /* #include "stocks.h" */ | 38 | /* #include "stocks.h" */ |
39 | /* } */ | 39 | /* } */ |
40 | 40 | ||
41 | class QTimer; | ||
42 | |||
41 | class StockTickerPluginWidget : public QWidget { | 43 | class StockTickerPluginWidget : public QWidget { |
42 | 44 | ||
43 | Q_OBJECT | 45 | Q_OBJECT |
@@ -52,7 +54,7 @@ protected slots: | |||
52 | 54 | ||
53 | private: | 55 | private: |
54 | Ticker *stocktickerTicker; | 56 | Ticker *stocktickerTicker; |
55 | 57 | void timerEvent( QTimerEvent * ); | |
56 | void init(); | 58 | void init(); |
57 | void getStocks( const char *stock_liste); | 59 | void getStocks( const char *stock_liste); |
58 | void DefProxy(void); | 60 | void DefProxy(void); |