![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
enum | DTrashColumn { DTrashThumb = 0 , DTrashRelPath , DTrashTimeStamp , DTrashNumCol } |
Public Slots | |
void | append (const DTrashItemInfo &itemInfo) |
appends item to model data and informs the view | |
void | refreshLayout () |
refreshes the view layout | |
void | refreshThumbnails (const LoadingDescription &desc, const QPixmap &pix) |
refreshes the thumbnails | |
void | removeItems (const QModelIndexList &indexes) |
removes list of items for given indexes from model data and informs the view | |
Signals | |
void | dataChange () |
void | signalLoadingFinished () |
void | signalLoadingStarted () |
Public Member Functions | |
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. | |
QString | trashAlbumPath () const |
|
slot |
itemInfo | item to append |
void Digikam::DTrashItemModel::changeThumbSize | ( | int | size | ) |
size | size to change to |
bool Digikam::DTrashItemModel::isEmpty | ( | ) |
void Digikam::DTrashItemModel::loadItemsForCollection | ( | const QString & | colPath | ) |
colPath | path to collection to load items for |
bool Digikam::DTrashItemModel::pixmapForItem | ( | const QString & | path, |
QPixmap & | pix | ||
) | const |
path | path of image in trash |
pix | Pixmap to fill |
|
slot |
desc | loading description from thumbnail load thread |
pix | pixmap from thumbnail load thread |
|
slot |
indexes | indexes to remove |