summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
Side-by-side diff
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, 7 insertions, 4 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
index 18c9e51..0d90d0f 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
@@ -212,7 +212,7 @@ void getStocks( const QString *blah) {
/* frees stocks */
free_stocks(stocks_quotes);
- stocktickerTicker->setText( output );
+ stocktickerTicker->setText( output.latin1() );
}
@@ -220,6 +220,8 @@ StockTickerPluginWidget::StockTickerPluginWidget( QWidget *parent, const char*
: QWidget(parent, name ) {
init();
startTimer(1000);
+
+ stocktickerTicker->setTextFormat(Qt::RichText);
// checkConnection();
}
@@ -243,13 +245,14 @@ void StockTickerPluginWidget::doStocks() {
symbollist = cfg.readEntry("Symbols", "");
symbollist.replace(QRegExp(" "),"+");//seperated by +
-// qDebug(symbollist);
+ cfg.setGroup("Timer");
+ stocktickerTicker->setUpdateTime( cfg.readNumEntry("ScrollSpeed",50));
+ stocktickerTicker->setScrollLength( cfg.readNumEntry("ScrollLength",10));
+
if (!symbollist.isEmpty()) {
pthread_t thread1;
pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist);
}
-// pthread_join(thread1,NULL);
-// getStocks( symbollist.latin1() );
}
void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) {