kwave
18.07.70
|
#include <StatusWidget.h>
Public Member Functions | |
StatusWidget (QWidget *parent=Q_NULLPTR) | |
virtual | ~StatusWidget () Q_DECL_OVERRIDE |
void | setPixmaps (const QVector< QPixmap > &pixmaps, unsigned int speed=150) |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *) Q_DECL_OVERRIDE |
Private Slots | |
void | nextPixmap () |
Private Attributes | |
QVector< QPixmap > | m_pixmaps |
unsigned int | m_index |
QTimer | m_timer |
Widget needed to display a little icon in the status bar
Definition at line 33 of file StatusWidget.h.
|
explicit |
Constructor
Definition at line 28 of file StatusWidget.cpp.
References Kwave::connect(), m_timer, and nextPixmap().
|
virtual |
|
privateslot |
switch to the next pixmap in the pixmaps list
Definition at line 73 of file StatusWidget.cpp.
References m_index, m_pixmaps, and Kwave::toInt().
Referenced by StatusWidget().
|
protectedvirtual |
repaint, see QWidget::paintEvent
Definition at line 43 of file StatusWidget.cpp.
References m_index, and m_pixmaps.
void Kwave::StatusWidget::setPixmaps | ( | const QVector< QPixmap > & | pixmaps, |
unsigned int | speed = 150 |
||
) |
Set a new list of pixmaps
pixmaps | a list of pixmaps (can also have only one element) |
speed | if multiple pixmaps are given, the time in milliseconds between the pixmaps, for animation |
Definition at line 58 of file StatusWidget.cpp.
References m_index, m_pixmaps, and m_timer.
Referenced by Kwave::RecordDialog::setState().
|
private |
index of the current pixmap
Definition at line 69 of file StatusWidget.h.
Referenced by nextPixmap(), paintEvent(), and setPixmaps().
|
private |
the pixmap to show
Definition at line 66 of file StatusWidget.h.
Referenced by nextPixmap(), paintEvent(), setPixmaps(), and ~StatusWidget().
|
private |
timer for switching to the next pixmap
Definition at line 72 of file StatusWidget.h.
Referenced by setPixmaps(), StatusWidget(), and ~StatusWidget().