summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-01 17:40:40 (UTC)
committer llornkcor <llornkcor>2002-11-01 17:40:40 (UTC)
commit75909e820818cc792e42d9c68fd50d05151b311d (patch) (unidiff)
treec8b9b7e153db85785ad446bd8ae0f7b74a457f77
parent47d6a3119a7b46d25ce35fb2abda9c2bf3fa3f69 (diff)
downloadopie-75909e820818cc792e42d9c68fd50d05151b311d.zip
opie-75909e820818cc792e42d9c68fd50d05151b311d.tar.gz
opie-75909e820818cc792e42d9c68fd50d05151b311d.tar.bz2
another timer fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
index cc1bbbb..a7f98be 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
@@ -54,18 +54,18 @@ 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// Config cfg( "stockticker");
58// cfg.setGroup("Timer");
59// timerDelay= cfg.readNumEntry("Delay",0);
60// if(timerDelay > 0 )
61// startTimer(timerDelay*60000);
62// qDebug("timer ^ set for %d",(timerDelay*60000)/60000);
57 63
58 Config cfg( "stockticker");
59 cfg.setGroup("Timer");
60 timerDelay= cfg.readNumEntry("Delay",0);
61 if(timerDelay > 0)
62 startTimer(timerDelay*60000);
63
64} 64}
65 65
66void StockTickerPluginWidget::doStocks() { 66void StockTickerPluginWidget::doStocks() {
67
68 Config cfg( "stockticker"); 67 Config cfg( "stockticker");
68
69 cfg.setGroup( "Symbols" ); 69 cfg.setGroup( "Symbols" );
70 QString symbollist; 70 QString symbollist;
71 symbollist = cfg.readEntry("Symbols", ""); 71 symbollist = cfg.readEntry("Symbols", "");
@@ -248,9 +248,13 @@ void StockTickerPluginWidget::DefProxy(void) {
248} 248}
249 249
250void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { 250void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) {
251 qDebug("timer");
252 killTimer(e->timerId()); 251 killTimer(e->timerId());
253 doStocks(); 252 doStocks();
253 Config cfg( "stockticker");
254 cfg.setGroup("Timer");
255 timerDelay= cfg.readNumEntry("Delay",0);
254 if(timerDelay > 0) 256 if(timerDelay > 0)
255 startTimer(timerDelay*60000); 257 startTimer(timerDelay*60000);
258 qDebug("timer set for %d",(timerDelay*60000)/60000);
259
256} 260}