#include <Libs/Widgets/ctkAddRemoveComboBox.h>
|
bool | addEnabled () const |
|
void | addItem (const QString &text, const QVariant &userDataVariable=QVariant()) |
|
void | addItem (const QIcon &icon, const QString &text, const QVariant &userDataVariable=QVariant()) |
|
void | addItems (const QStringList &texts) |
|
void | clear () |
|
bool | comboBoxEnabled () const |
|
int | count () const |
|
| ctkAddRemoveComboBox (QWidget *parent=0) |
| Constructors. More...
|
|
QVariant | currentData (int role=Qt::UserRole) const |
|
int | currentIndex () const |
|
QString | currentText () const |
|
bool | editEnabled () const |
|
bool | empty () const |
|
QString | emptyText () const |
|
int | findData (const QVariant &data, int role=Qt::UserRole, Qt::MatchFlags flags=Qt::MatchExactly|Qt::MatchCaseSensitive) const |
|
int | findText (const QString &text, Qt::MatchFlags flags=Qt::MatchExactly|Qt::MatchCaseSensitive) const |
|
void | insertItem (int index, const QString &text, const QVariant &userDataVariable=QVariant()) |
|
void | insertItem (int index, const QIcon &icon, const QString &text, const QVariant &userDataVariable=QVariant()) |
|
void | insertItems (int index, const QStringList &texts) |
|
QVariant | itemData (int index, int role=Qt::UserRole) const |
|
QString | itemText (int index) const |
|
virtual void | printAdditionalInfo () |
|
void | removeCurrentItem () |
|
bool | removeEnabled () const |
|
void | removeItem (int index) |
|
void | setAddEnabled (bool enable) |
|
void | setComboBoxEnabled (bool enable) |
|
void | setEditEnabled (bool enable) |
|
void | setEmptyText (const QString &text) |
|
void | setItemData (int index, const QVariant &data, int role=Qt::UserRole) |
|
void | setItemText (int index, const QString &text) |
|
void | setRemoveEnabled (bool enable) |
|
virtual | ~ctkAddRemoveComboBox () |
|
|
QScopedPointer< ctkAddRemoveComboBoxPrivate > | d_ptr |
|
QComboBox with tool buttons to add/remove entries to the menu list
Definition at line 40 of file ctkAddRemoveComboBox.h.
ctkAddRemoveComboBox::ctkAddRemoveComboBox |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
virtual ctkAddRemoveComboBox::~ctkAddRemoveComboBox |
( |
| ) |
|
|
virtual |
void ctkAddRemoveComboBox::activated |
( |
int |
index | ) |
|
|
signal |
bool ctkAddRemoveComboBox::addEnabled |
( |
| ) |
const |
void ctkAddRemoveComboBox::addItem |
( |
const QString & |
text, |
|
|
const QVariant & |
userDataVariable = QVariant() |
|
) |
| |
|
inline |
void ctkAddRemoveComboBox::addItem |
( |
const QIcon & |
icon, |
|
|
const QString & |
text, |
|
|
const QVariant & |
userDataVariable = QVariant() |
|
) |
| |
|
inline |
void ctkAddRemoveComboBox::addItems |
( |
const QStringList & |
texts | ) |
|
|
inline |
void ctkAddRemoveComboBox::clear |
( |
| ) |
|
bool ctkAddRemoveComboBox::comboBoxEnabled |
( |
| ) |
const |
int ctkAddRemoveComboBox::count |
( |
| ) |
const |
Return the number of item
QVariant ctkAddRemoveComboBox::currentData |
( |
int |
role = Qt::UserRole | ) |
const |
|
inline |
int ctkAddRemoveComboBox::currentIndex |
( |
| ) |
const |
void ctkAddRemoveComboBox::currentIndexChanged |
( |
int |
index | ) |
|
|
signal |
QString ctkAddRemoveComboBox::currentText |
( |
| ) |
const |
|
inline |
bool ctkAddRemoveComboBox::editEnabled |
( |
| ) |
const |
bool ctkAddRemoveComboBox::empty |
( |
| ) |
const |
QString ctkAddRemoveComboBox::emptyText |
( |
| ) |
const |
int ctkAddRemoveComboBox::findData |
( |
const QVariant & |
data, |
|
|
int |
role = Qt::UserRole , |
|
|
Qt::MatchFlags |
flags = Qt::MatchExactly|Qt::MatchCaseSensitive |
|
) |
| const |
int ctkAddRemoveComboBox::findText |
( |
const QString & |
text, |
|
|
Qt::MatchFlags |
flags = Qt::MatchExactly|Qt::MatchCaseSensitive |
|
) |
| const |
Returns the index of the item containing the given text; otherwise returns -1. The flags specify how the items in the combobox are searched.
void ctkAddRemoveComboBox::insertItem |
( |
int |
index, |
|
|
const QString & |
text, |
|
|
const QVariant & |
userDataVariable = QVariant() |
|
) |
| |
void ctkAddRemoveComboBox::insertItem |
( |
int |
index, |
|
|
const QIcon & |
icon, |
|
|
const QString & |
text, |
|
|
const QVariant & |
userDataVariable = QVariant() |
|
) |
| |
void ctkAddRemoveComboBox::insertItems |
( |
int |
index, |
|
|
const QStringList & |
texts |
|
) |
| |
void ctkAddRemoveComboBox::itemAboutToBeRemoved |
( |
int |
index | ) |
|
|
signal |
void ctkAddRemoveComboBox::itemAdded |
( |
int |
index | ) |
|
|
signal |
This signal is sent after the method 'addItem' has been called programmatically
QVariant ctkAddRemoveComboBox::itemData |
( |
int |
index, |
|
|
int |
role = Qt::UserRole |
|
) |
| const |
void ctkAddRemoveComboBox::itemRemoved |
( |
int |
index | ) |
|
|
signal |
QString ctkAddRemoveComboBox::itemText |
( |
int |
index | ) |
const |
QAbstractItemModel* ctkAddRemoveComboBox::model |
( |
| ) |
const |
|
protected |
int ctkAddRemoveComboBox::modelColumn |
( |
| ) |
const |
|
protected |
virtual void ctkAddRemoveComboBox::onAdd |
( |
| ) |
|
|
protectedvirtualslot |
virtual void ctkAddRemoveComboBox::onEdit |
( |
| ) |
|
|
protectedvirtualslot |
virtual void ctkAddRemoveComboBox::onRemove |
( |
| ) |
|
|
protectedvirtualslot |
virtual void ctkAddRemoveComboBox::printAdditionalInfo |
( |
| ) |
|
|
virtual |
void ctkAddRemoveComboBox::removeCurrentItem |
( |
| ) |
|
|
inline |
bool ctkAddRemoveComboBox::removeEnabled |
( |
| ) |
const |
void ctkAddRemoveComboBox::removeItem |
( |
int |
index | ) |
|
Remove the item currently selected. See signal 'itemRemoved'
QModelIndex ctkAddRemoveComboBox::rootModelIndex |
( |
| ) |
const |
|
protected |
void ctkAddRemoveComboBox::setAddEnabled |
( |
bool |
enable | ) |
|
Enable/Disable the add button.
void ctkAddRemoveComboBox::setComboBox |
( |
QComboBox * |
comboBox | ) |
|
|
protected |
void ctkAddRemoveComboBox::setComboBoxEnabled |
( |
bool |
enable | ) |
|
Enable/Disable the add button.
void ctkAddRemoveComboBox::setCurrentIndex |
( |
int |
index | ) |
|
|
slot |
void ctkAddRemoveComboBox::setEditEnabled |
( |
bool |
enable | ) |
|
Enable/Disable the edit button.
void ctkAddRemoveComboBox::setEmptyText |
( |
const QString & |
text | ) |
|
Set text that should be displayed in the comboBox when it is empty
void ctkAddRemoveComboBox::setItemData |
( |
int |
index, |
|
|
const QVariant & |
data, |
|
|
int |
role = Qt::UserRole |
|
) |
| |
void ctkAddRemoveComboBox::setItemText |
( |
int |
index, |
|
|
const QString & |
text |
|
) |
| |
void ctkAddRemoveComboBox::setRemoveEnabled |
( |
bool |
enable | ) |
|
Enable/Disable the add button.
void ctkAddRemoveComboBox::setRootModelIndex |
( |
const QModelIndex & |
root | ) |
|
|
protected |
QScopedPointer<ctkAddRemoveComboBoxPrivate> ctkAddRemoveComboBox::d_ptr |
|
protected |
bool ctkAddRemoveComboBox::addEnabled |
|
readwrite |
bool ctkAddRemoveComboBox::editEnabled |
|
readwrite |
QString ctkAddRemoveComboBox::emptyText |
|
readwrite |
bool ctkAddRemoveComboBox::removeEnabled |
|
readwrite |
The documentation for this class was generated from the following file: