summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp
Side-by-side diff
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp8
1 files changed, 6 insertions, 2 deletions
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
@@ -52,19 +52,23 @@ Ticker::Ticker( QWidget* parent=0 ) : QFrame( parent ) {
}
Ticker::~Ticker() {
}
void Ticker::setText( const QString& text ) {
-
+ Config cfg("qpe");
+ cfg.setGroup("Appearance");
+
pos = 0; // reset it everytime the text is changed
scrollText = text;
int pixelLen = fontMetrics().width( text );
QPixmap pm( pixelLen, contentsRect().height() );
- pm.fill( QColor( 167, 212, 167 ) );
+// pm.fill( QColor( 167, 212, 167 ));
+
+ pm.fill( QColor( cfg.readEntry( "Background", "#E5E1D5" ) ));
QPainter pmp( &pm );
pmp.setPen( Qt::black );
pmp.drawText( 0, 0, pixelLen, contentsRect().height(), AlignVCenter, scrollText );
pmp.end();
scrollTextPixmap = pm;