Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/ticker.cpp | 8 |
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 | |||
@@ -55,13 +55,17 @@ Ticker::~Ticker() { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | void Ticker::setText( const QString& text ) { | 57 | void 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; |
61 | 63 | ||
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 ); |
67 | pmp.drawText( 0, 0, pixelLen, contentsRect().height(), AlignVCenter, scrollText ); | 71 | pmp.drawText( 0, 0, pixelLen, contentsRect().height(), AlignVCenter, scrollText ); |