QxtCheckComboBox Class Reference
[Gui]
A combo box with checkable items.
More...
Signals
Public Member Functions
-
Q_ENUMS (CheckMode) public
- QxtCheckComboBox (QWidget *parent=0)
- virtual ~QxtCheckComboBox ()
-
QStringList checkedItems () const
-
void setCheckedItems (const QStringList &items)
-
QString defaultText () const
-
void setDefaultText (const QString &text)
- Qt::CheckState itemCheckState (int index) const
- void setItemCheckState (int index, Qt::CheckState state)
-
QString separator () const
-
void setSeparator (const QString &separator)
-
CheckMode checkMode () const
-
void setCheckMode (CheckMode mode)
Properties
- QString separator
- This property holds the default text.
- QString defaultText
- This property holds the default text.
-
QStringList checkedItems
- This property holds the checked items.
- QxtCheckComboBox::CheckMode checkMode
- This property holds the check mode.
Detailed Description
A combo box with checkable items.
QxtComboBox is a specialized combo box with checkable items. All the checked items are collected together on the line edit.
QxtCheckComboBox in Plastique style.
Constructor & Destructor Documentation
QxtCheckComboBox::QxtCheckComboBox
( QWidget *
parent = 0
) [explicit]
QxtCheckComboBox::~QxtCheckComboBox
(
) [virtual]
Member Function Documentation
Qt::CheckState QxtCheckComboBox::itemCheckState
( int
index
) const
Returns the check state of the item at index.
void QxtCheckComboBox::setItemCheckState
( int
index,
Qt::CheckState
state
)
Sets the check state of the item at index to state.
QxtCheckComboBox::checkedItemsChanged
( const QStringList &
items
) [signal]
This signal is emitted whenever the checked items have been changed.
Property Documentation
QString QxtCheckComboBox::separator [read, write]
This property holds the default text.
The checked items are joined together with the separator string. The default value is a comma (",").
QString QxtCheckComboBox::defaultText [read, write]
This property holds the default text.
The default text is shown when there is no checked items. The default value is an empty string.
QxtCheckComboBox::CheckMode QxtCheckComboBox::checkMode [read, write]
This property holds the check mode.
The check mode describes item checking behaviour. The default value is QxtCheckComboBox::CheckIndicator.