|
|
| DTrashItemModel (QObject *const parent, QWidget *const widget) |
|
DTrashItemInfoList | allItems () |
| | returns a list of all items in model
|
| void | changeThumbSize (int size) |
| | Changes the thumbnail size.
|
|
void | clearCurrentData () |
| | Clears all data from model and informs the view.
|
|
int | columnCount (const QModelIndex &) const override |
|
QVariant | data (const QModelIndex &index, int role) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
|
QModelIndex | indexForItem (const DTrashItemInfo &itemInfo) const |
| | returns the index for the DTrashItemInfo in model
|
| bool | isEmpty () |
|
DTrashItemInfo | itemForIndex (const QModelIndex &index) |
| | returns DTrashItemInfo for specific index in model
|
|
DTrashItemInfoList | itemsForIndexes (const QList< QModelIndex > &indexes) |
| | returns DTrashItemInfoList for given indexes in model
|
| void | loadItemsForCollection (const QString &colPath) |
| | Runs a thread to list all items from a collection trash.
|
| bool | pixmapForItem (const QString &path, QPixmap &pix) const |
| | loads a thumbnail for item in trash for showing
|
|
int | rowCount (const QModelIndex &) const override |
| | QAbstractItemModel interface.
|
|
void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) override |
|
void | stopLoadingTrash () |
| | Stop loading of trash.
|
|
void | suspendLoadingTrashThumbs () |
| | Stop loading of trash thumbnails.
|
|
QString | trashAlbumPath () const |