From 5a08fd92ac139820e1a1202d0b4b67190f24ccdb Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 31 Oct 2002 00:09:31 +0000 Subject: added - initial check in --- (limited to 'noncore/todayplugins/stockticker/stocktickerlib/ticker.h') diff --git a/noncore/todayplugins/stockticker/stocktickerlib/ticker.h b/noncore/todayplugins/stockticker/stocktickerlib/ticker.h new file mode 100644 index 0000000..3b68928 --- a/dev/null +++ b/noncore/todayplugins/stockticker/stocktickerlib/ticker.h @@ -0,0 +1,32 @@ +#ifndef TICKER_H +#define TICKER_H + +#include +#include +#include +#include +#include +#include +#include +#include + +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 -- cgit v0.9.0.2