|
| void | allRefreshingFinished () |
| | Signals that the model has finished currently with all scheduled refreshing, full or incremental, and all preprocessing.
|
| |
|
void | imageChange (const ImageChangeset &, const QItemSelection &) |
| | If an ImageChangeset affected indexes of this model with changes as set in watchFlags(), this signal contains the changeset and the affected indexes.
|
| |
| void | imageInfosAboutToBeAdded (const QList< ItemInfo > &infos) |
| | Informs that ItemInfos will be added to the model.
|
| |
| void | imageInfosAboutToBeRemoved (const QList< ItemInfo > &infos) |
| | Informs that ItemInfos will be removed from the model.
|
| |
| void | imageInfosAdded (const QList< ItemInfo > &infos) |
| | Informs that ItemInfos have been added to the model.
|
| |
| void | imageInfosRemoved (const QList< ItemInfo > &infos) |
| | Informs that ItemInfos have been removed from the model.
|
| |
|
void | imageTagChange (const ImageTagChangeset &, const QItemSelection &) |
| | If an ImageTagChangeset affected indexes of this model, this signal contains the changeset and the affected indexes.
|
| |
|
void | preprocess (const QList< ItemInfo > &infos, const QList< QVariant > &) |
| | Connect to this signal only if you are the current preprocessor.
|
| |
|
void | processAdded (const QList< ItemInfo > &infos, const QList< QVariant > &) |
| |
| void | readyForIncrementalRefresh () |
| | Signals that the model is right now ready to start an incremental refresh.
|
| |
|
|
| ItemModel (QObject *const parent=nullptr) |
| |
| void | addItemInfo (const ItemInfo &info) |
| | Main entry point for subclasses adding image infos to the model.
|
| |
|
void | addItemInfos (const QList< ItemInfo > &infos) |
| |
|
void | addItemInfos (const QList< ItemInfo > &infos, const QList< QVariant > &extraValues) |
| |
|
void | addItemInfosSynchronously (const QList< ItemInfo > &infos) |
| |
|
void | addItemInfosSynchronously (const QList< ItemInfo > &infos, const QList< QVariant > &extraValues) |
| |
| void | addItemInfoSynchronously (const ItemInfo &info) |
| | addItemInfo() is asynchronous if a prepocessor is set.
|
| |
|
void | clearItemInfos () |
| | Clears image infos and resets model.
|
| |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
|
void | ensureHasGroupedImages (const ItemInfo &groupLeader) |
| | Ensure that all images grouped on the given leader are contained in the model.
|
| |
| void | ensureHasItemInfo (const ItemInfo &info) |
| | Add the given entries.
|
| |
|
void | ensureHasItemInfos (const QList< ItemInfo > &infos) |
| |
|
void | ensureHasItemInfos (const QList< ItemInfo > &infos, const QList< QVariant > &extraValues) |
| |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
|
bool | hasImage (const ItemInfo &info) const |
| |
|
bool | hasImage (const ItemInfo &info, const QVariant &extraValue) const |
| |
|
bool | hasImage (qlonglong id) const |
| |
|
bool | hasImage (qlonglong id, const QVariant &extraValue) const |
| |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
|
qlonglong | imageId (const QModelIndex &index) const |
| |
|
qlonglong | imageId (int row) const |
| |
|
QList< qlonglong > | imageIds () const |
| |
|
QList< qlonglong > | imageIds (const QList< QModelIndex > &indexes) const |
| |
| ItemInfo | imageInfo (const QModelIndex &index) const |
| |
|
ItemInfo | imageInfo (const QString &filePath) const |
| |
| ItemInfo | imageInfo (int row) const |
| |
|
ItemInfo & | imageInfoRef (const QModelIndex &index) const |
| |
|
ItemInfo & | imageInfoRef (int row) const |
| |
|
QList< ItemInfo > | imageInfos () const |
| |
|
QList< ItemInfo > | imageInfos (const QList< QModelIndex > &indexes) const |
| |
|
QList< ItemInfo > | imageInfos (const QString &filePath) const |
| |
|
QModelIndex | index (int row, int column=0, const QModelIndex &parent=QModelIndex()) const override |
| |
|
QList< QModelIndex > | indexesForImageId (qlonglong id) const |
| |
|
QList< QModelIndex > | indexesForItemInfo (const ItemInfo &info) const |
| |
|
QList< QModelIndex > | indexesForPath (const QString &filePath) const |
| |
|
QModelIndex | indexForImageId (qlonglong id) const |
| |
|
QModelIndex | indexForImageId (qlonglong id, const QVariant &extraValue) const |
| |
| QModelIndex | indexForItemInfo (const ItemInfo &info) const |
| |
|
QModelIndex | indexForItemInfo (const ItemInfo &info, const QVariant &extraValue) const |
| |
| QModelIndex | indexForPath (const QString &filePath) const |
| |
|
bool | isEmpty () const |
| |
| bool | isRefreshing () const |
| |
|
int | itemCount () const |
| |
|
bool | keepsFilePathCache () const |
| |
|
int | numberOfIndexesForImageId (qlonglong id) const |
| |
|
int | numberOfIndexesForItemInfo (const ItemInfo &info) const |
| |
|
void | removeIndex (const QModelIndex &indexes) |
| | Directly remove the given indexes or infos from the model.
|
| |
|
void | removeIndexes (const QList< QModelIndex > &indexes) |
| |
|
void | removeItemInfo (const ItemInfo &info) |
| |
|
void | removeItemInfos (const QList< ItemInfo > &infos) |
| |
|
void | removeItemInfos (const QList< ItemInfo > &infos, const QList< QVariant > &extraValues) |
| |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
|
void | setItemInfos (const QList< ItemInfo > &infos) |
| | Clears and adds the infos.
|
| |
| void | setKeepsFilePathCache (bool keepCache) |
| | If a cache is kept, lookup by file path is fast, without a cache it is O(n).
|
| |
| DECLARE_MODEL_DRAG_DROP_METHODS void | setPreprocessor (QObject *const processor) |
| | Install an object as a preprocessor for ItemInfos added to this model.
|
| |
| void | setSendRemovalSignals (bool send) |
| | Enable sending of imageInfosAboutToBeRemoved and imageInfosRemoved signals.
|
| |
| void | setWatchFlags (const DatabaseFields::Set &set) |
| | Set a set of database fields to watch.
|
| |
|
QList< ItemInfo > | uniqueItemInfos () const |
| |
|
void | unsetPreprocessor (QObject *const processor) |
| |
| | DragDropModelImplementation ()=default |
| | A class providing a sample implementation for a QAbstractItemModel redirecting drag-and-drop support to a handler.
|
| |
| virtual Qt::ItemFlags | dragDropFlags (const QModelIndex &index) const |
| | Call from your flags() method, adding the relevant drag drop flags.
|
| |
| Qt::ItemFlags | dragDropFlagsV2 (const QModelIndex &index) const |
| | This is an alternative approach to dragDropFlags().
|
| |
|
AbstractItemDragDropHandler * | dragDropHandler () const |
| |
|
bool | dropMimeData (const QMimeData *, Qt::DropAction, int, int, const QModelIndex &) |
| |
|
virtual bool | isDragEnabled (const QModelIndex &index) const |
| |
|
virtual bool | isDropEnabled (const QModelIndex &index) const |
| |
|
QMimeData * | mimeData (const QModelIndexList &indexes) const |
| |
|
QStringList | mimeTypes () const |
| |
|
void | setDragDropHandler (AbstractItemDragDropHandler *handler) |
| | Set a drag drop handler.
|
| |
| Qt::DropActions | supportedDropActions () const |
| | Implements the relevant QAbstractItemModel methods for drag and drop.
|
| |