18 #ifndef TIANCHI_TCMARQUEELABEL_H
19 #define TIANCHI_TCMARQUEELABEL_H
21 #include <tianchi/tcglobal.h>
28 class TcMarqueeLabelPrivate;
39 Q_PROPERTY(Direction direction
42 NOTIFY directionChanged
46 Q_PROPERTY(
int interval
49 NOTIFY intervalChanged
53 Q_PROPERTY(
bool active
59 Q_PROPERTY(Qt::Alignment alignment
66 Qt::WindowFlags f = 0);
71 bool isActive() const;
79 Direction direction()
const;
80 void setAlignment(Qt::Alignment align);
83 void intervalChanged(
int interval);
85 void activeChanged(
bool active);
87 void directionChanged(Direction direction);
94 void setActive(
bool active);
97 void setInterval(
int msec);
106 void setDirection(Direction direciton);
108 virtual void enterEvent(QEvent *event);
109 virtual void leaveEvent(QEvent *event);
110 virtual void resizeEvent(QResizeEvent *event);
111 virtual void timerEvent(QTimerEvent *event);
112 virtual void paintEvent(QPaintEvent *event);
116 Q_PRIVATE_SLOT(d_func(),
void _q_openLink(const QString &))
117 TcMarqueeLabelPrivate* const d_ptr;