-rw-r--r-- | libopie/oticker.cpp | 3 |
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 @@ -55,24 +55,27 @@ OTicker::OTicker( QWidget* parent ) 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() ); |