|
| QVariant | data (const QModelIndex &index, int role) const override |
| |
| | FileItemModel (QList< FileItem * > fileItems, QObject *parent) |
| |
| Qt::ItemFlags | flags (const QModelIndex &) const override |
| |
| int | rowCount (const QModelIndex &) const override |
| |
| bool | setData (const QModelIndex &index, const QVariant &, int role) override |
| |
| | ~FileItemModel () override |
| |
◆ FileItemModel()
| KisAutoSaveRecoveryDialog::FileItemModel::FileItemModel |
( |
QList< FileItem * > | fileItems, |
|
|
QObject * | parent ) |
|
inline |
◆ ~FileItemModel()
| KisAutoSaveRecoveryDialog::FileItemModel::~FileItemModel |
( |
| ) |
|
|
inlineoverride |
◆ data()
| QVariant KisAutoSaveRecoveryDialog::FileItemModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
inlineoverride |
Definition at line 143 of file KisAutoSaveRecoveryDialog.cpp.
144 {
145 if (index.isValid() && index.row() <
m_fileItems.size()) {
146
148
149 switch (role) {
150 case Qt::DisplayRole:
151 {
152 return QVariant::fromValue<void*>((void*)item);
153 }
154 case Qt::SizeHintRole:
155 return QSize(600, 200);
156 }
157 }
158 return QVariant();
159 }
References m_fileItems.
◆ flags()
| Qt::ItemFlags KisAutoSaveRecoveryDialog::FileItemModel::flags |
( |
const QModelIndex & | | ) |
const |
|
inlineoverride |
Definition at line 137 of file KisAutoSaveRecoveryDialog.cpp.
138 {
139 Qt::ItemFlags
flags = Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsUserCheckable;
141 }
Qt::ItemFlags flags(const QModelIndex &) const override
References flags().
◆ rowCount()
| int KisAutoSaveRecoveryDialog::FileItemModel::rowCount |
( |
const QModelIndex & | | ) |
const |
|
inlineoverride |
◆ setData()
| bool KisAutoSaveRecoveryDialog::FileItemModel::setData |
( |
const QModelIndex & | index, |
|
|
const QVariant & | , |
|
|
int | role ) |
|
inlineoverride |
◆ m_fileItems
| QList<FileItem *> KisAutoSaveRecoveryDialog::FileItemModel::m_fileItems |
The documentation for this class was generated from the following file: