summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp4
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h2
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp8
3 files changed, 10 insertions, 4 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp
index 82dfb13..baf8198 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp
@@ -54,3 +54,5 @@ QString StockTickerPlugin::appName() const {
54} 54}
55 55
56 56bool StockTickerPlugin::excludeFromRefresh() const {
57return true;
58}
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h
index 9f174bf..7e7698f 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h
@@ -41,5 +41,5 @@ public:
41 TodayConfigWidget* configWidget(QWidget *); 41 TodayConfigWidget* configWidget(QWidget *);
42 QString appName() const; 42 QString appName() const;
43 43 bool excludeFromRefresh() const;
44 44
45}; 45};
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp b/noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp
index 6e6273b..3bdc820 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp
@@ -56,5 +56,7 @@ Ticker::~Ticker() {
56 56
57void Ticker::setText( const QString& text ) { 57void Ticker::setText( const QString& text ) {
58 58 Config cfg("qpe");
59 cfg.setGroup("Appearance");
60
59 pos = 0; // reset it everytime the text is changed 61 pos = 0; // reset it everytime the text is changed
60 scrollText = text; 62 scrollText = text;
@@ -62,5 +64,7 @@ void Ticker::setText( const QString& text ) {
62 int pixelLen = fontMetrics().width( text ); 64 int pixelLen = fontMetrics().width( text );
63 QPixmap pm( pixelLen, contentsRect().height() ); 65 QPixmap pm( pixelLen, contentsRect().height() );
64 pm.fill( QColor( 167, 212, 167 ) ); 66// pm.fill( QColor( 167, 212, 167 ));
67
68 pm.fill( QColor( cfg.readEntry( "Background", "#E5E1D5" ) ));
65 QPainter pmp( &pm ); 69 QPainter pmp( &pm );
66 pmp.setPen( Qt::black ); 70 pmp.setPen( Qt::black );