#include <filemodel.h>
|
| FileModel (QObject *parent=0) |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
|
QModelIndex | parent (const QModelIndex &index) const |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
|
QVariant | data (const QModelIndex &index, int role) const |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
|
bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
|
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const |
|
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const |
|
Qt::ItemFlags | flags (const QModelIndex &index) const |
|
Item * | getRootItem () |
|
void | setPreviewWidth (int size) |
|
FileModel::FileModel |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
int FileModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
QVariant FileModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
When the rootItem is changed, old signals may still be in queue and accessing non-existent items caused crash.
Qt::ItemFlags FileModel::flags |
( |
const QModelIndex & |
index | ) |
const |
Item * FileModel::getRootItem |
( |
| ) |
|
QVariant FileModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
QModelIndex FileModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
void FileModel::initMetadata |
( |
Item * |
i | ) |
|
|
slot |
QModelIndex FileModel::mapFromSource |
( |
const QModelIndex & |
sourceIndex | ) |
const |
QModelIndex FileModel::mapToSource |
( |
const QModelIndex & |
proxyIndex | ) |
const |
QModelIndex FileModel::parent |
( |
const QModelIndex & |
index | ) |
const |
void FileModel::prepareForUpdate |
( |
| ) |
|
|
slot |
void FileModel::requestColumnResize |
( |
| ) |
|
|
signal |
int FileModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
bool FileModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
bool FileModel::setHeaderData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
void FileModel::setPreviewWidth |
( |
int |
size | ) |
|
void FileModel::setRootIndex |
( |
const QModelIndex & |
index | ) |
|
|
slot |
void FileModel::setRootIndex |
( |
Item * |
item | ) |
|
|
slot |
void FileModel::setThumbWidth |
( |
int |
size | ) |
|
|
slot |
Item* FileModel::formalRootItem |
|
protected |
Item* FileModel::rootItem |
|
protected |
The documentation for this class was generated from the following files: