summaryrefslogtreecommitdiff
path: root/libopie/oticker.h
Unidiff
Diffstat (limited to 'libopie/oticker.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/oticker.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie/oticker.h b/libopie/oticker.h
index 4f0ed11..92a4be4 100644
--- a/libopie/oticker.h
+++ b/libopie/oticker.h
@@ -9,6 +9,7 @@
9#include <qslider.h> 9#include <qslider.h>
10#include <qframe.h> 10#include <qframe.h>
11#include <qlineedit.h> 11#include <qlineedit.h>
12#include <qcolor.h>
12 13
13class OTicker : public QFrame { 14class OTicker : public QFrame {
14 Q_OBJECT 15 Q_OBJECT
@@ -17,6 +18,9 @@ public:
17 OTicker( QWidget* parent=0 ); 18 OTicker( QWidget* parent=0 );
18 ~OTicker(); 19 ~OTicker();
19 void setText( const QString& text ) ; 20 void setText( const QString& text ) ;
21 void setBackgroundColor(QColor color);
22 void setForegroundColor(QColor color);
23 void setFrame(int);
20signals: 24signals:
21 void mousePressed(); 25 void mousePressed();
22protected: 26protected:
@@ -24,6 +28,7 @@ protected:
24 void drawContents( QPainter *p ); 28 void drawContents( QPainter *p );
25 void mouseReleaseEvent ( QMouseEvent *); 29 void mouseReleaseEvent ( QMouseEvent *);
26private: 30private:
31 QColor backgroundcolor, foregroundcolor;
27 QString scrollText; 32 QString scrollText;
28 QPixmap scrollTextPixmap; 33 QPixmap scrollTextPixmap;
29 int pos;//, pixelLen; 34 int pos;//, pixelLen;