OTicker Class Reference
The OTicker class provides a QLabel widget that scroll its contents. More...
#include <oticker.h>
Inheritance diagram for OTicker:


Signals | |
| void | mousePressed () |
| signal mouse press event | |
Public Member Functions | |
| OTicker (QWidget *parent=0) | |
| Object constructor. | |
| ~OTicker () | |
| Object destructor. | |
| void | setText (const QString &text) |
| sets text to be displayed | |
| void | setBackgroundColor (const QColor &color) |
| sets color of the ticker's background | |
| void | setForegroundColor (const QColor &color) |
| sets color of text | |
| void | setFrame (int style) |
| sets frame style | |
| void | setUpdateTime (int timeout) |
| sets time of update | |
| void | setScrollLength (int length) |
| sets amount of scrolling default is 1 | |
Protected Member Functions | |
| void | timerEvent (QTimerEvent *e) |
| timer timeout event | |
| void | drawContents (QPainter *p) |
| draws widget contents | |
| void | mouseReleaseEvent (QMouseEvent *e) |
| mouse release event | |
Detailed Description
The OTicker class provides a QLabel widget that scroll its contents.
Definition at line 49 of file oticker.h.
Constructor & Destructor Documentation
|
|
Object constructor.
Definition at line 47 of file oticker.cpp. References Config::readEntry(), Config::setGroup(), and QLabel::setTextFormat(). |
|
|
Object destructor.
Definition at line 59 of file oticker.cpp. |
Member Function Documentation
|
|
sets text to be displayed
Reimplemented from QLabel. Definition at line 77 of file oticker.cpp. References QFrame::contentsRect(), QPainter::drawText(), QPainter::end(), QPixmap::fill(), QWidget::fontMetrics(), QObject::killTimers(), QString::length(), QPainter::setPen(), QObject::startTimer(), and QWidget::update(). |
|
|
sets color of the ticker's background
Reimplemented from QWidget. Definition at line 62 of file oticker.cpp. References QWidget::update(). |
|
|
sets color of text
Definition at line 67 of file oticker.cpp. References QWidget::update(). |
|
|
sets frame style
Definition at line 72 of file oticker.cpp. References QFrame::setFrameStyle(), and QWidget::update(). |
|
|
sets time of update
Definition at line 132 of file oticker.cpp. |
|
|
sets amount of scrolling default is 1
Definition at line 136 of file oticker.cpp. |
|
|
signal mouse press event
Referenced by mouseReleaseEvent(). |
|
|
timer timeout event
Reimplemented from QObject. Definition at line 115 of file oticker.cpp. References QWidget::repaint(), and QPixmap::width(). |
|
|
draws widget contents
Reimplemented from QLabel. Definition at line 120 of file oticker.cpp. References QFrame::contentsRect(), QPainter::drawPixmap(), QPixmap::width(), and QWidget::y(). |
|
|
mouse release event
Reimplemented from QWidget. Definition at line 127 of file oticker.cpp. References mousePressed(). |
The documentation for this class was generated from the following files:
