summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
Unidiff
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (show 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() {
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
59void StockTickerPluginWidget::doStocks() { 66void 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) {
243void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { 250void 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}