blob: 4f0ed11f9c44f01c30420df5d16eebb180b07b29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef OTICKER_H
#define OTICKER_H
#include <qwidget.h>
#include <qpainter.h>
#include <qdrawutil.h>
#include <qpixmap.h>
#include <qstring.h>
#include <qslider.h>
#include <qframe.h>
#include <qlineedit.h>
class OTicker : public QFrame {
Q_OBJECT
public:
OTicker( QWidget* parent=0 );
~OTicker();
void setText( const QString& text ) ;
signals:
void mousePressed();
protected:
void timerEvent( QTimerEvent * );
void drawContents( QPainter *p );
void mouseReleaseEvent ( QMouseEvent *);
private:
QString scrollText;
QPixmap scrollTextPixmap;
int pos;//, pixelLen;
};
#endif
|