author | llornkcor <llornkcor> | 2002-11-01 17:07:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-01 17:07:12 (UTC) |
commit | 800932401b86a43cd52f9cbc2833b2795d1c955b (patch) (unidiff) | |
tree | fbf319da8ba850d8987b4e73707a1df3f3e682ce /noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |
parent | 9e5589036e37a54a70243617f38741b6c709aff1 (diff) | |
download | opie-800932401b86a43cd52f9cbc2833b2795d1c955b.zip opie-800932401b86a43cd52f9cbc2833b2795d1c955b.tar.gz opie-800932401b86a43cd52f9cbc2833b2795d1c955b.tar.bz2 |
add lookup timer delay spin
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp index aabb4d2..e178338 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |||
@@ -54,6 +54,13 @@ void StockTickerPluginWidget::init() { | |||
54 | connect( stocktickerTicker, SIGNAL( mousePressed()), this, SLOT( doStocks() )); | 54 | connect( stocktickerTicker, SIGNAL( mousePressed()), this, SLOT( doStocks() )); |
55 | 55 | ||
56 | layout->addWidget( stocktickerTicker); | 56 | layout->addWidget( stocktickerTicker); |
57 | |||
58 | Config cfg( "stockticker"); | ||
59 | cfg.setGroup("Timer"); | ||
60 | timerDelay= cfg.readNumEntry("Delay",0); | ||
61 | if(timerDelay > 0) | ||
62 | startTimer(timerDelay*60000); | ||
63 | |||
57 | } | 64 | } |
58 | 65 | ||
59 | void StockTickerPluginWidget::doStocks() { | 66 | void StockTickerPluginWidget::doStocks() { |
@@ -120,7 +127,7 @@ void StockTickerPluginWidget::getStocks( const char *blah) { | |||
120 | 127 | ||
121 | if (stocks_tmp->Time) { | 128 | if (stocks_tmp->Time) { |
122 | // printf("%s ", stocks_tmp->Time); | 129 | // printf("%s ", stocks_tmp->Time); |
123 | tempString.sprintf("|| %s ", stocks_tmp->Time); | 130 | tempString.sprintf("| %s ", stocks_tmp->Time); |
124 | tempString.replace(QRegExp("\""),""); | 131 | tempString.replace(QRegExp("\""),""); |
125 | if( dotimeCheck) | 132 | if( dotimeCheck) |
126 | output +=tempString; | 133 | output +=tempString; |
@@ -243,4 +250,6 @@ void StockTickerPluginWidget::DefProxy(void) { | |||
243 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { | 250 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { |
244 | killTimer(e->timerId()); | 251 | killTimer(e->timerId()); |
245 | doStocks(); | 252 | doStocks(); |
253 | if(timerDelay > 0) | ||
254 | startTimer(timerDelay*1000); | ||
246 | } | 255 | } |