author | llornkcor <llornkcor> | 2002-11-10 23:49:18 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 23:49:18 (UTC) |
commit | 38b632ddbe065403b84bf29949941c88f8916d41 (patch) (side-by-side diff) | |
tree | 143f923544f1d33a4c0a4cab820cf20890b0fadd /noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |
parent | 41c15dff26825ba13233d84583080e6bceee470f (diff) | |
download | opie-38b632ddbe065403b84bf29949941c88f8916d41.zip opie-38b632ddbe065403b84bf29949941c88f8916d41.tar.gz opie-38b632ddbe065403b84bf29949941c88f8916d41.tar.bz2 |
added scroll speed options
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 11 |
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 ) { |