summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
authorllornkcor <llornkcor>2002-11-01 17:07:12 (UTC)
committer llornkcor <llornkcor>2002-11-01 17:07:12 (UTC)
commit800932401b86a43cd52f9cbc2833b2795d1c955b (patch) (side-by-side diff)
treefbf319da8ba850d8987b4e73707a1df3f3e682ce /noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
parent9e5589036e37a54a70243617f38741b6c709aff1 (diff)
downloadopie-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.cpp11
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() {
connect( stocktickerTicker, SIGNAL( mousePressed()), this, SLOT( doStocks() ));
layout->addWidget( stocktickerTicker);
+
+ Config cfg( "stockticker");
+ cfg.setGroup("Timer");
+ timerDelay= cfg.readNumEntry("Delay",0);
+ if(timerDelay > 0)
+ startTimer(timerDelay*60000);
+
}
void StockTickerPluginWidget::doStocks() {
@@ -120,7 +127,7 @@ void StockTickerPluginWidget::getStocks( const char *blah) {
if (stocks_tmp->Time) {
// printf("%s ", stocks_tmp->Time);
- tempString.sprintf("|| %s ", stocks_tmp->Time);
+ tempString.sprintf("| %s ", stocks_tmp->Time);
tempString.replace(QRegExp("\""),"");
if( dotimeCheck)
output +=tempString;
@@ -243,4 +250,6 @@ void StockTickerPluginWidget::DefProxy(void) {
void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) {
killTimer(e->timerId());
doStocks();
+ if(timerDelay > 0)
+ startTimer(timerDelay*1000);
}