author | llornkcor <llornkcor> | 2002-11-01 17:40:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-01 17:40:40 (UTC) |
commit | 75909e820818cc792e42d9c68fd50d05151b311d (patch) (side-by-side diff) | |
tree | c8b9b7e153db85785ad446bd8ae0f7b74a457f77 | |
parent | 47d6a3119a7b46d25ce35fb2abda9c2bf3fa3f69 (diff) | |
download | opie-75909e820818cc792e42d9c68fd50d05151b311d.zip opie-75909e820818cc792e42d9c68fd50d05151b311d.tar.gz opie-75909e820818cc792e42d9c68fd50d05151b311d.tar.bz2 |
another timer fix
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 20 |
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 @@ -49,28 +49,28 @@ void StockTickerPluginWidget::init() { QHBoxLayout* layout = new QHBoxLayout( this ); stocktickerTicker = new Ticker(this); stocktickerTicker->setMinimumHeight(15); 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); +// qDebug("timer ^ set for %d",(timerDelay*60000)/60000); - Config cfg( "stockticker"); - cfg.setGroup("Timer"); - timerDelay= cfg.readNumEntry("Delay",0); - if(timerDelay > 0) - startTimer(timerDelay*60000); - } void StockTickerPluginWidget::doStocks() { - Config cfg( "stockticker"); + cfg.setGroup( "Symbols" ); QString symbollist; symbollist = cfg.readEntry("Symbols", ""); symbollist.replace(QRegExp(" "),"+");//seperated by + // qDebug(symbollist); getStocks( symbollist.latin1()); @@ -243,14 +243,18 @@ void StockTickerPluginWidget::DefProxy(void) { output = tempString; return; // exit(1); } } } void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { - qDebug("timer"); killTimer(e->timerId()); doStocks(); + Config cfg( "stockticker"); + cfg.setGroup("Timer"); + timerDelay= cfg.readNumEntry("Delay",0); if(timerDelay > 0) startTimer(timerDelay*60000); + qDebug("timer set for %d",(timerDelay*60000)/60000); + } |