summaryrefslogtreecommitdiff
path: root/libopie
Side-by-side diff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/oticker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie/oticker.cpp b/libopie/oticker.cpp
index 47dcb3e..b4afbf9 100644
--- a/libopie/oticker.cpp
+++ b/libopie/oticker.cpp
@@ -51,32 +51,35 @@ OTicker::OTicker( QWidget* parent )
Config cfg("qpe");
cfg.setGroup("Appearance");
backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) );
foregroundcolor= Qt::black;
}
OTicker::~OTicker() {
}
void OTicker::setBackgroundColor(QColor backcolor) {
backgroundcolor = backcolor;
+ update();
}
void OTicker::setForegroundColor(QColor backcolor) {
foregroundcolor = backcolor;
+ update();
}
void OTicker::setFrame(int frameStyle) {
setFrameStyle( frameStyle/*WinPanel | Sunken */);
+ update();
}
void OTicker::setText( const QString& text ) {
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(backgroundcolor);
QPainter pmp( &pm );