An item rendering delegate to highlight parent items and draw better item separators.
More...
|
| TreeComboItemDelegate (QObject *parent=Q_NULLPTR) |
|
| QStyledItemDelegate (QObject *parent) |
|
virtual | ~QStyledItemDelegate () |
|
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const const override |
|
virtual QString | displayText (const QVariant &value, const QLocale &locale) const const |
|
QItemEditorFactory * | itemEditorFactory () const const |
|
virtual const QMetaObject * | metaObject () const const |
|
virtual int | qt_metacall (QMetaObject::Call, int, void **) |
|
virtual void * | qt_metacast (const char *) |
|
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const const override |
|
void | setItemEditorFactory (QItemEditorFactory *factory) |
|
virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const const override |
|
virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const const override |
|
| QAbstractItemDelegate (QObject *parent) |
|
virtual | ~QAbstractItemDelegate () |
|
void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
|
void | commitData (QWidget *editor) |
|
virtual void | destroyEditor (QWidget *editor, const QModelIndex &index) const const |
|
virtual bool | helpEvent (QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) |
|
void | sizeHintChanged (const QModelIndex &index) |
|
| QObject (QObject *parent) |
|
virtual | ~QObject () |
|
bool | blockSignals (bool block) |
|
const QObjectList & | children () const const |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectInfo () const const |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () const const |
|
void | dumpObjectTree () |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
virtual bool | event (QEvent *e) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
bool | inherits (const char *className) const const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
void | killTimer (int id) |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const const |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
QVariant | property (const char *name) const const |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | signalsBlocked () const const |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
|
QThread * | thread () const const |
|
|
static bool | isParent (const QModelIndex &index) |
|
static bool | isSeparator (const QModelIndex &index) |
|
static void | setParent (QAbstractItemModel *model, const QModelIndex &index, const bool selectable=false) |
|
static void | setSeparator (QAbstractItemModel *model, const QModelIndex &index) |
|
QString | tr (const char *s, const char *c, int n) |
|
QString | trUtf8 (const char *s, const char *c, int n) |
|
QString | elidedText (const QFontMetrics &fontMetrics, int width, Qt::TextElideMode mode, const QString &text) |
|
QString | tr (const char *s, const char *c, int n) |
|
QString | trUtf8 (const char *s, const char *c, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
An item rendering delegate to highlight parent items and draw better item separators.
Used by TreeComboBox.
This delegate differs from the default by how it renders separator items and by adding a new formatting style for "parent" items. With this delegate, separators are visible on all platforms. Parent items get bolded and italicisized fonts. Parent items are drawn with enabled style even if they're actually disabled. It also has convenience static functions for flagging/checking a data model item as a separator or parent. The separator type is fully compatible with default QComboBox (it is set the same way).
Definition at line 50 of file TreeComboBox.h.