blob: 3b68928cb915f9c43e762fede617351f25719a31 (
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 TICKER_H
#define TICKER_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 Ticker : public QFrame {
Q_OBJECT
public:
Ticker( QWidget* parent=0 );
~Ticker();
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
|