libkdepim
kcheckcombobox.cpp
Go to the documentation of this file.
72 void KCheckComboBox::Private::makeInsertedItemsCheckable(const QModelIndex &parent, int start, int end)
82 kWarning() << "KCheckComboBox: model is not a QStandardItemModel but a" << q->model() << ". Cannot proceed.";
324 // Always eat the event: don't let QItemDelegate toggle the current index when the view is hidden.
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void setItemCheckState(int index, Qt::CheckState state)
Changes the check state of the given index to the given state.
Definition: kcheckcombobox.cpp:185
Type type() const
bool alwaysShowDefaultText() const
Returns whether the default text is always shown, even if there are no checked items.
Definition: kcheckcombobox.cpp:352
KCheckComboBox(QWidget *parent=0)
Creates a new checkable combobox.
Definition: kcheckcombobox.cpp:141
void setAlwaysShowDefaultText(bool always)
Sets if the default text should always be shown even if there are no checked items.
Definition: kcheckcombobox.cpp:357
bool contains(const QString &str, Qt::CaseSensitivity cs) const
A combobox that shows its items in such a way that they can be checked in the drop menu...
Definition: kcheckcombobox.h:42
QString join(const QString &separator) const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, QFlags< Qt::MatchFlag > flags) const
QString defaultText() const
Returns the default text that is shown when no items are selected.
int toInt(bool *ok) const
virtual void resizeEvent(QResizeEvent *event)
Definition: kcheckcombobox.cpp:305
bool isEnabled() const
bool isEmpty() const
void setItemEnabled(int index, bool enabled=true)
Set the item at.
Definition: kcheckcombobox.cpp:253
virtual bool eventFilter(QObject *receiver, QEvent *event)
Definition: kcheckcombobox.cpp:312
void setSeparator(const QString &separator)
Sets the separator used to separate items in the line edit.
Definition: kcheckcombobox.cpp:269
virtual void keyPressEvent(QKeyEvent *event)
Definition: kcheckcombobox.cpp:277
QString separator() const
Returns the current separator used to separate the selected items in the line edit of the combo box...
void setEnabled(bool enabled)
int key() const
QStandardItem * item(int row, int column) const
void setDefaultText(const QString &text)
Sets the default text that is shown when no items are selected.
Definition: kcheckcombobox.cpp:221
int width(const QString &text, int len) const
void setSqueezeText(bool squeeze)
Sets whether or not the text must be squeezed.
Definition: kcheckcombobox.cpp:234
QVariant data(int role) const
bool squeezeText() const
Returns whether or not the text will be squeezed to fit in the combo's line edit. ...
virtual int rowCount(const QModelIndex &parent) const
bool isValid() const
Qt::CheckState itemCheckState(int index) const
Returns the check state of item at given index.
Definition: kcheckcombobox.cpp:180
void setCheckedItems(const QStringList &items, int role=Qt::DisplayRole)
Sets the currently selected items.
Definition: kcheckcombobox.cpp:204
QString toString() const
virtual void hidePopup()
Hides the popup list if it is currently shown.
Definition: kcheckcombobox.cpp:172
void setCheckable(bool checkable)
virtual void wheelEvent(QWheelEvent *event)
Definition: kcheckcombobox.cpp:298
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.