kwave
18.07.70
|
#include <BitrateSpinBox.h>
Public Slots | |
virtual void | snapIn (int value) |
Signals | |
void | snappedIn (int bitrate) |
Public Member Functions | |
BitrateSpinBox (QWidget *parent) | |
virtual | ~BitrateSpinBox () |
virtual void | allowRates (const QList< int > &list) |
Protected Member Functions | |
int | nearestIndex (int rate) |
Private Attributes | |
QList< int > | m_rates |
Definition at line 30 of file BitrateSpinBox.h.
|
explicit |
Constructor
Definition at line 27 of file BitrateSpinBox.cpp.
References Kwave::connect(), m_rates, and snapIn().
|
virtual |
|
virtual |
sets a list of allowed bitrates
Definition at line 64 of file BitrateSpinBox.cpp.
References m_rates.
|
protected |
find the nearest bitrate index of a current position
Definition at line 79 of file BitrateSpinBox.cpp.
References m_rates, and Kwave::toInt().
Referenced by snapIn().
|
virtualslot |
snaps in to a new value
Definition at line 42 of file BitrateSpinBox.cpp.
References m_rates, nearestIndex(), snappedIn(), and Kwave::toInt().
Referenced by BitrateSpinBox().
|
signal |
emitted when the value changed and snapped in to a bitrate
Referenced by snapIn().
|
private |
list of allowed bitrates, sorted ascending
Definition at line 61 of file BitrateSpinBox.h.
Referenced by allowRates(), BitrateSpinBox(), nearestIndex(), and snapIn().