libkdepim
Go to the documentation of this file.
26 #ifndef KCHECKCOMBOBOX_H
27 #define KCHECKCOMBOBOX_H
32 #include <QModelIndex>
46 Q_PROPERTY(
QString separator READ separator WRITE setSeparator )
47 Q_PROPERTY(
QString defaultText READ defaultText WRITE setDefaultText )
48 Q_PROPERTY(
bool squeezeText READ squeezeText WRITE setSqueezeText )
49 Q_PROPERTY(
QStringList checkedItems READ checkedItems WRITE setCheckedItems )
67 virtual
void hidePopup();
79 void setDefaultText( const
QString &text );
85 bool alwaysShowDefaultText() const;
93 void setAlwaysShowDefaultText(
bool always );
101 bool squeezeText() const;
108 void setSqueezeText(
bool squeeze );
114 bool itemEnabled(
int index );
120 void setItemEnabled(
int index,
bool enabled = true );
127 Qt::CheckState itemCheckState(
int index ) const;
135 void setItemCheckState(
int index, Qt::CheckState state );
148 void setSeparator( const
QString &separator );
154 QStringList checkedItems(
int role = Qt::DisplayRole ) const;
164 void setCheckedItems( const
QStringList &items,
int role = Qt::DisplayRole );
172 void checkedItemsChanged( const
QStringList &items );
175 virtual
bool eventFilter(
QObject *receiver,
QEvent *event );
176 virtual
void keyPressEvent(
QKeyEvent *event );
178 #ifndef QT_NO_WHEELEVENT
187 Q_PRIVATE_SLOT( d,
void makeInsertedItemsCheckable(
const QModelIndex &,
int start,
int end) )
188 Q_PRIVATE_SLOT( d,
void updateCheckedItems(
const QModelIndex &topLeft,
190 Q_PRIVATE_SLOT( d,
void toggleCheckState() )
196 #endif // KCHECKCOMBOBOX_H
A combobox that shows its items in such a way that they can be checked in the drop menu...
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
KDE's Doxygen guidelines are available online.