#include <foldertabledelegate.h>
Public Member Functions | |
FolderTableDelegate (QObject *parent=0) | |
~FolderTableDelegate () | |
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 |
void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Private Slots | |
void | commitAndCloseEditor () |
Definition at line 7 of file foldertabledelegate.h.
FolderTableDelegate::FolderTableDelegate | ( | QObject * | parent = 0 |
) |
Definition at line 10 of file foldertabledelegate.cpp.
FolderTableDelegate::~FolderTableDelegate | ( | ) |
QWidget * FolderTableDelegate::createEditor | ( | QWidget * | parent, | |
const QStyleOptionViewItem & | option, | |||
const QModelIndex & | index | |||
) | const |
Definition at line 19 of file foldertabledelegate.cpp.
References confirmResponse, FolderTableModel::getColumnResponse(), FolderTableModel::getCoolTypeString(), FolderTableModel::getInputMask(), FolderTableModel::getValidator(), and FolderTableModel::isNewRow().
void FolderTableDelegate::setEditorData | ( | QWidget * | editor, | |
const QModelIndex & | index | |||
) | const |
Definition at line 54 of file foldertabledelegate.cpp.
References commitAndCloseEditor(), FolderTableModel::data(), FolderTableModel::getCoolTypeString(), HexCT, FolderTableModel::rawData(), ContentEditor::setContent(), and StringCT.
void FolderTableDelegate::setModelData | ( | QWidget * | editor, | |
QAbstractItemModel * | model, | |||
const QModelIndex & | index | |||
) | const |
Definition at line 78 of file foldertabledelegate.cpp.
References ContentEditor::contents(), FolderTableModel::getCoolTypeString(), ContentEditor::isModified(), and FolderTableModel::setData().
void FolderTableDelegate::updateEditorGeometry | ( | QWidget * | editor, | |
const QStyleOptionViewItem & | option, | |||
const QModelIndex & | index | |||
) | const |
Definition at line 97 of file foldertabledelegate.cpp.
void FolderTableDelegate::commitAndCloseEditor | ( | ) | [private, slot] |
Definition at line 102 of file foldertabledelegate.cpp.
Referenced by setEditorData(), and ~FolderTableDelegate().