#include <controlvaluedelegate.h>
List of all members.
Public Member Functions |
| ControlValueDelegate (QObject *parent=0) |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Static Public Member Functions |
static bool | verifyControlValueValidity (QString controlGroup, QAbstractItemModel *model, const QModelIndex &index) |
static QStringList | getChannelControlValues () |
static QStringList | getMasterControlValues () |
static QStringList | getPlaylistControlValues () |
static QStringList | getFlangerControlValues () |
static QStringList | getMicrophoneControlValues () |
Detailed Description
Definition at line 18 of file controlvaluedelegate.h.
Constructor & Destructor Documentation
ControlValueDelegate::ControlValueDelegate |
( |
QObject * |
parent = 0 | ) |
|
Member Function Documentation
QWidget * ControlValueDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
static QStringList ControlValueDelegate::getChannelControlValues |
( |
| ) |
[inline, static] |
These getters are used by the "Add Control" dialog in the MIDI prefs.
Definition at line 39 of file controlvaluedelegate.h.
static QStringList ControlValueDelegate::getFlangerControlValues |
( |
| ) |
[inline, static] |
static QStringList ControlValueDelegate::getMasterControlValues |
( |
| ) |
[inline, static] |
static QStringList ControlValueDelegate::getMicrophoneControlValues |
( |
| ) |
[inline, static] |
static QStringList ControlValueDelegate::getPlaylistControlValues |
( |
| ) |
[inline, static] |
void ControlValueDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
void ControlValueDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
void ControlValueDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
void ControlValueDelegate::updateEditorGeometry |
( |
QWidget * |
editor, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
bool ControlValueDelegate::verifyControlValueValidity |
( |
QString |
controlGroup, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| [static] |
Verify that the currently selected ControlValue is valid for some given controlGroup. When the controlGroup is changed in the neighbouring column, the existing ControlValue might not be valid any more, so we need to clear it if that's the case.
- Parameters:
-
controlGroup | The group that has just been selected and should be verified against. |
index | The model index of the ControlValue. |
Definition at line 274 of file controlvaluedelegate.cpp.
The documentation for this class was generated from the following files: