QAdvanced Item View
0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
|
The QFilterViewItemDelegate class provides display and editing facilities for filter from a filter model. More...
#include <qfilterviewitemdelegate.h>
Public Slots | |
void | commitAndClose (QAbstractItemDelegate::EndEditHint hint=QAbstractItemDelegate::NoHint) |
void | cancelAndClose (QAbstractItemDelegate::EndEditHint hint=QAbstractItemDelegate::NoHint) |
Public Member Functions | |
QFilterViewItemDelegate (QObject *parent) | |
~QFilterViewItemDelegate () | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
The QFilterViewItemDelegate class provides display and editing facilities for filter from a filter model.
QFilterViewItemDelegate::QFilterViewItemDelegate | ( | QObject * | parent | ) |
Constructs an item delegate with the given parent
.
QFilterViewItemDelegate::~QFilterViewItemDelegate | ( | ) |
Destroys the item delegate.
QWidget * QFilterViewItemDelegate::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
void QFilterViewItemDelegate::updateEditorGeometry | ( | QWidget * | editor, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Updates the editor for the item specified by index according to the style option given.