summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
authorllornkcor <llornkcor>2002-11-05 13:32:56 (UTC)
committer llornkcor <llornkcor>2002-11-05 13:32:56 (UTC)
commit320c8020a112dff1bc1d43bee9b103a423e0ac35 (patch) (side-by-side diff)
tree1de3fdcdfe26c9555d4356a18702f274a1217422 /noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
parent0750e839e1d10069dbde7e669a345800f0ec088f (diff)
downloadopie-320c8020a112dff1bc1d43bee9b103a423e0ac35.zip
opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.tar.gz
opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.tar.bz2
dont trust Qt to initialize QStrings correctly always
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
index 45c5c53..2f35f7f 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
@@ -218,50 +218,49 @@ void getStocks( const QString *blah) {
StockTickerPluginWidget::StockTickerPluginWidget( QWidget *parent, const char* name)
: QWidget(parent, name ) {
init();
startTimer(1000);
// checkConnection();
}
StockTickerPluginWidget::~StockTickerPluginWidget() {
}
void StockTickerPluginWidget::init() {
QHBoxLayout* layout = new QHBoxLayout( this );
stocktickerTicker = new OTicker(this);
stocktickerTicker->setMinimumHeight(15);
connect( stocktickerTicker, SIGNAL( mousePressed()), this, SLOT( checkConnection() ));
layout->addWidget( stocktickerTicker);
wasError = true;
}
void StockTickerPluginWidget::doStocks() {
Config cfg( "stockticker");
cfg.setGroup( "Symbols" );
- QString symbollist;
- symbollist = cfg.readEntry("Symbols", "");
+ symbollist="";
symbollist = cfg.readEntry("Symbols", "");
symbollist.replace(QRegExp(" "),"+");//seperated by +
// qDebug(symbollist);
if (!symbollist.isEmpty()) {
pthread_t thread1;
pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist);
}
// pthread_join(thread1,NULL);
// getStocks( symbollist.latin1() );
}
//void StockTickerPluginWidget::DefProxy(void) {
// char *proxy;
// libstocks_return_code error;
// /* Proxy support */
// /* Checks for "http_proxy" environment variable */
// proxy = getenv("http_proxy");
// if(proxy) {
// /* printf("proxy set\n"); */
// error = set_proxy(proxy);
// if (error) {
// // printf("Proxy error (%d)\n", error);