QAbstractItemDelegate Class Reference

#include <qabstractitemdelegate.h>

Class Description

Definition at line 62 of file qabstractitemdelegate.h.

+ Inheritance diagram for QAbstractItemDelegate:

Public Types

enum  EndEditHint {
  NoHint, EditNextItem, EditPreviousItem, SubmitModelCache,
  RevertModelCache
}
 

Public Slots

bool helpEvent (QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void commitData (QWidget *editor)
 
void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint=NoHint)
 
void sizeHintChanged (const QModelIndex &)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QAbstractItemDelegate (QObject *parent=0)
 
virtual ~QAbstractItemDelegate ()
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 
virtual QWidgetcreateEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 
virtual void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Static Public Member Functions

static QString elidedText (const QFontMetrics &fontMetrics, int width, Qt::TextElideMode mode, const QString &text)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 

Protected Member Functions

 QAbstractItemDelegate (QObjectPrivate &, QObject *parent=0)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Additional Inherited Members

- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Member Enumeration Documentation

Constructor & Destructor Documentation

QAbstractItemDelegate ( QObject parent = 0)
explicit
virtual ~QAbstractItemDelegate ( )
virtual
QAbstractItemDelegate ( QObjectPrivate &  ,
QObject parent = 0 
)
protected

Member Function Documentation

virtual void paint ( QPainter painter,
const QStyleOptionViewItem option,
const QModelIndex index 
) const
pure virtual

Implemented in QItemDelegate, and QStyledItemDelegate.

virtual QSize sizeHint ( const QStyleOptionViewItem option,
const QModelIndex index 
) const
pure virtual

Implemented in QItemDelegate, and QStyledItemDelegate.

virtual QWidget* createEditor ( QWidget parent,
const QStyleOptionViewItem option,
const QModelIndex index 
) const
virtual

Reimplemented in QItemDelegate, and QStyledItemDelegate.

virtual void setEditorData ( QWidget editor,
const QModelIndex index 
) const
virtual

Reimplemented in QItemDelegate, and QStyledItemDelegate.

virtual void setModelData ( QWidget editor,
QAbstractItemModel model,
const QModelIndex index 
) const
virtual

Reimplemented in QItemDelegate, and QStyledItemDelegate.

virtual void updateEditorGeometry ( QWidget editor,
const QStyleOptionViewItem option,
const QModelIndex index 
) const
virtual

Reimplemented in QItemDelegate, and QStyledItemDelegate.

virtual bool editorEvent ( QEvent event,
QAbstractItemModel model,
const QStyleOptionViewItem option,
const QModelIndex index 
)
virtual

Reimplemented in QItemDelegate, and QStyledItemDelegate.

static QString elidedText ( const QFontMetrics fontMetrics,
int  width,
Qt::TextElideMode  mode,
const QString text 
)
static
bool helpEvent ( QHelpEvent event,
QAbstractItemView view,
const QStyleOptionViewItem option,
const QModelIndex index 
)
slot
void commitData ( QWidget editor)
signal
void closeEditor ( QWidget editor,
QAbstractItemDelegate::EndEditHint  hint = NoHint 
)
signal
void sizeHintChanged ( const QModelIndex )
signal

The documentation for this class was generated from the following file: