digiKam
|
Public Types | |
enum | AlbumDataRole { AlbumTitleRole = Qt::UserRole , AlbumTypeRole = Qt::UserRole + 1 , AlbumPointerRole = Qt::UserRole + 2 , AlbumIdRole = Qt::UserRole + 3 , AlbumGlobalIdRole = Qt::UserRole + 4 , AlbumSortRole = Qt::UserRole + 5 } |
enum | RootAlbumBehavior { IncludeRootAlbum , IgnoreRootAlbum } |
Public Slots | |
void | checkAllAlbums (const QModelIndex &parent=QModelIndex()) |
Checks all albums beneath the given parent. More... | |
void | checkAllParentAlbums (const QModelIndex &child) |
Checks all parent albums starting at the child, including it. More... | |
void | excludeChildrenCount (const QModelIndex &index) |
void | includeChildrenCount (const QModelIndex &index) |
void | invertCheckedAlbums (const QModelIndex &parent=QModelIndex()) |
Inverts the checked state of all albums under the given parent. More... | |
void | resetAllCheckedAlbums () |
Resets the checked state of all albums to Qt::Unchecked. More... | |
void | resetCheckedAlbums (const QModelIndex &parent=QModelIndex()) |
Resets the checked state of all albums under the given parent. More... | |
void | resetCheckedParentAlbums (const QModelIndex &child) |
Resets the checked state of all parents of the child including it. More... | |
void | setChecked (Album *album, bool isChecked) |
Sets the check state of album to Checked or Unchecked. More... | |
void | setCheckState (Album *album, Qt::CheckState state) |
Sets the check state of the album. More... | |
void | setCheckStateForChildren (Album *album, Qt::CheckState state) |
Sets the checked state recursively for all children of and the given album. More... | |
void | setCheckStateForParents (Album *album, Qt::CheckState state) |
Sets the checked state recursively for all parents of and the given album. More... | |
void | setCountMap (const QMap< int, int > &idCountMap) |
void | setShowCount (bool show) |
Call to enable or disable showing the count. Default is false. More... | |
void | toggleChecked (Album *album) |
Toggles the check state of album between Checked or Unchecked. More... | |
Signals | |
void | checkStateChanged (Album *album, Qt::CheckState checkState) |
void | rootAlbumAvailable () |
Public Member Functions | |
virtual int | albumCount (Album *album) const |
PAlbum * | albumForIndex (const QModelIndex &index) const |
AlbumModel (RootAlbumBehavior rootBehavior=IncludeRootAlbum, QObject *const parent=nullptr) | |
Album::Type | albumType () const |
QList< Album * > | checkedAlbums () const |
Returns a list of album with check state Checked. More... | |
Qt::CheckState | checkState (Album *album) const |
Returns the check state of the album. More... | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
AlbumModelDragDropHandler * | dragDropHandler () const |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | indexForAlbum (Album *album) const |
bool | isAddExcludeTristate () const |
bool | isCheckable () const |
bool | isChecked (Album *album) const |
Returns if the given album has the check state Checked. More... | |
bool | isFaceTagModel () const |
bool | isTristate () const |
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
QStringList | mimeTypes () const override |
QModelIndex | parent (const QModelIndex &index) const override |
QList< Album * > | partiallyCheckedAlbums () const |
Returns a list of album with partially check state Checked. More... | |
Album * | rootAlbum () const |
RootAlbumBehavior | rootAlbumBehavior () const |
QModelIndex | rootAlbumIndex () const |
bool | rootIsCheckable () const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
void | setAddExcludeTristate (bool b) |
void | setCheckable (bool isCheckable) |
Triggers if the albums in this model are checkable. More... | |
void | setDragDropHandler (AlbumModelDragDropHandler *handler) |
void | setRootCheckable (bool rootIsCheckable) |
void | setTristate (bool isTristate) |
bool | showCount () const |
Qt::DropActions | supportedDropActions () const override |
~AlbumModel () override | |
Static Public Member Functions | |
static Album * | retrieveAlbum (const QModelIndex &index) |
Protected Slots | |
void | slotAlbumAboutToBeAdded (Album *album, Album *parent, Album *prev) |
void | slotAlbumAboutToBeDeleted (Album *album) |
void | slotAlbumAdded (Album *) |
void | slotAlbumHasBeenDeleted (quintptr) |
void | slotAlbumIconChanged (Album *album) |
void | slotAlbumMoved (Album *album) |
void | slotAlbumRenamed (Album *album) |
void | slotAlbumsCleared () |
void | slotGotThumbnailFromIcon (Album *album, const QPixmap &thumbnail) |
void | slotReloadThumbnails () |
void | slotThumbnailLost (Album *album) |
Protected Member Functions | |
void | albumCleared (Album *album) override |
Notification when an entry is removed. More... | |
QVariant | albumData (Album *a, int role) const override |
Reimplemented from parent classes. More... | |
Album * | albumForId (int id) const override |
need to implement in subclass More... | |
virtual QString | albumName (Album *a) const |
Can reimplement in subclass. More... | |
void | allAlbumsCleared () override |
Notification when all entries are removed. More... | |
QString | columnHeader () const override |
For subclassing convenience: A part of the implementation of headerData() More... | |
QVariant | decorationRoleData (Album *a) const override |
For subclassing convenience: A part of the implementation of data() More... | |
void | emitDataChangedForChildren (Album *album) |
virtual bool | filterAlbum (Album *album) const |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
virtual QVariant | fontRoleData (Album *a) const |
For subclassing convenience: A part of the implementation of data() More... | |
virtual Qt::ItemFlags | itemFlags (Album *album) const |
For subclassing convenience: A part of the implementation of itemFlags() More... | |
void | prepareAddExcludeDecoration (Album *a, QPixmap &icon) const |
void | setColumnHeader (const QString &header) |
void | setCount (Album *album, int count) |
If you do not use setCountMap, excludeChildrenCount and includeChildrenCount, you can set a count here. More... | |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | setEnableDrag (bool enable) |
void | setEnableDrop (bool enable) |
void | setFaceTagModel (bool enable) |
void | setup () |
void | setupThumbnailLoading () |
You need to call this from your constructor if you intend to load the thumbnail facilities of this class. More... | |
virtual QVariant | sortRoleData (Album *a) const |
For subclassing convenience: A part of the implementation of data() More... | |
Protected Attributes | |
QString | m_columnHeader |
|
inherited |
Enumerator | |
---|---|
AlbumTitleRole | Returns the album title. Principally the same as display role, but without any additions. |
AlbumTypeRole | Returns the Album::Type of the associated album. |
AlbumPointerRole | Returns a pointer to the associated Album object. |
AlbumIdRole | Returns the id of the associated Album object. |
AlbumGlobalIdRole | Returns the global id (unique across all album types) |
AlbumSortRole | Returns the data to sort on. |
|
inherited |
AbstractAlbumModel is the abstract base class for all models that present Album objects as managed by AlbumManager. You will want to create an instance of the base classes.
|
explicit |
Create a model containing all physical albums
References Digikam::AlbumManager::instance(), Digikam::AbstractSpecificAlbumModel::m_columnHeader, Digikam::AbstractCountingAlbumModel::setCountMap(), and Digikam::AbstractSpecificAlbumModel::setupThumbnailLoading().
|
override |
|
overrideprotectedvirtualinherited |
Notification when an entry is removed.
Reimplemented from Digikam::AbstractCountingAlbumModel.
References Digikam::AbstractCountingAlbumModel::albumCleared(), and Digikam::AlbumManager::instance().
|
virtualinherited |
Returns the number of included items for this album.
References Digikam::Album::id().
|
overrideprotectedvirtual |
Reimplemented from parent classes.
Reimplemented from Digikam::AbstractCheckableAlbumModel.
References Digikam::AbstractCheckableAlbumModel::albumData(), Digikam::AbstractCountingAlbumModel::albumName(), Digikam::DeleteDialogMode::Files, Digikam::AlbumManager::findPAlbum(), Digikam::PAlbum::folderPath(), Digikam::Album::id(), Digikam::AlbumManager::instance(), Digikam::Album::isTrashAlbum(), Digikam::Album::parent(), and Digikam::AbstractCountingAlbumModel::showCount().
|
overrideprotectedvirtual |
need to implement in subclass
Implements Digikam::AbstractCountingAlbumModel.
References Digikam::AlbumManager::findPAlbum(), and Digikam::AlbumManager::instance().
PAlbum * Digikam::AlbumModel::albumForIndex | ( | const QModelIndex & | index | ) | const |
|
protectedvirtualinherited |
Can reimplement in subclass.
Reimplemented in Digikam::DateAlbumModel.
References Digikam::Album::title().
Referenced by Digikam::AbstractCountingAlbumModel::albumData(), and albumData().
|
inherited |
Returns the Album::Type of the contained albums
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel().
|
overrideprotectedvirtualinherited |
Notification when all entries are removed.
Reimplemented from Digikam::AbstractCountingAlbumModel.
References Digikam::AbstractCountingAlbumModel::allAlbumsCleared().
|
slotinherited |
Checks all albums beneath the given parent.
References Digikam::AbstractAlbumModel::parent().
|
slotinherited |
Checks all parent albums starting at the child, including it.
Returns a list of album with check state Checked.
Referenced by Digikam::AbstractCheckableAlbumTreeView::doSaveState(), Digikam::SearchFieldAlbum::updateState(), and Digikam::SearchFieldAlbum::write().
|
inherited |
Returns the check state of the album.
Referenced by Digikam::CheckableAlbumFilterModel::matches(), Digikam::AbstractCheckableAlbumTreeView::middleButtonPressed(), Digikam::AbstractCheckableAlbumModel::prepareAddExcludeDecoration(), and Digikam::AbstractCheckableAlbumModel::toggleChecked().
|
signalinherited |
Emitted when the check state of an album changes. checkState contains the new Qt::CheckState of album
Referenced by Digikam::AbstractCheckableAlbumModel::resetAllCheckedAlbums(), and Digikam::AbstractCheckableAlbumModel::setData().
|
overrideinherited |
|
overrideprotectedvirtualinherited |
For subclassing convenience: A part of the implementation of headerData()
Reimplemented from Digikam::AbstractAlbumModel.
References Digikam::AbstractSpecificAlbumModel::m_columnHeader.
|
overrideinherited |
|
overrideprotectedvirtual |
For subclassing convenience: A part of the implementation of data()
Reimplemented from Digikam::AbstractAlbumModel.
References Digikam::AlbumThumbnailLoader::getAlbumThumbnailDirectly(), Digikam::ApplicationSettings::getTreeViewIconSize(), Digikam::AlbumThumbnailLoader::instance(), Digikam::ApplicationSettings::instance(), and Digikam::AbstractCheckableAlbumModel::prepareAddExcludeDecoration().
|
inherited |
Returns the drag drop handler, or 0 if none is installed
Referenced by Digikam::AbstractAlbumTreeView::dragEnterEvent(), Digikam::AbstractAlbumTreeView::dragMoveEvent(), Digikam::AbstractAlbumTreeView::dropEvent(), Digikam::AlbumTreeView::setAlbumModel(), and Digikam::TagTreeView::setAlbumModel().
|
overrideinherited |
|
protectedinherited |
References Digikam::AbstractAlbumModel::filterAlbum(), Digikam::Album::firstChild(), Digikam::AbstractAlbumModel::index(), Digikam::AbstractAlbumModel::indexForAlbum(), and Digikam::Album::next().
Referenced by Digikam::AbstractCountingAlbumModel::setShowCount(), and Digikam::AbstractSpecificAlbumModel::slotReloadThumbnails().
|
slotinherited |
Displays only the count of the album, without adding child albums' counts. This is the default. Can connect to QTreeView's expanded() signal.
References Digikam::AbstractAlbumModel::albumForIndex(), Digikam::Album::id(), and Digikam::AbstractAlbumModel::index().
|
protectedvirtualinherited |
Returns true for those and only those albums that shall be contained in this model. They must have a common root album, which is set in the constructor.
References Digikam::Album::type().
Referenced by Digikam::AbstractSpecificAlbumModel::emitDataChangedForChildren(), Digikam::AbstractAlbumModel::indexForAlbum(), Digikam::AbstractAlbumModel::slotAlbumAboutToBeAdded(), Digikam::AbstractAlbumModel::slotAlbumAboutToBeDeleted(), Digikam::AbstractAlbumModel::slotAlbumIconChanged(), Digikam::AbstractAlbumModel::slotAlbumRenamed(), and Digikam::AbstractSpecificAlbumModel::slotGotThumbnailFromIcon().
|
overrideprotectedinherited |
|
protectedvirtualinherited |
For subclassing convenience: A part of the implementation of data()
Reimplemented in Digikam::TagModel.
Referenced by Digikam::AbstractAlbumModel::albumData().
|
overrideinherited |
|
overrideinherited |
References Digikam::AbstractAlbumModel::columnHeader().
|
slotinherited |
Displays sum of the count of the album and child albums' counts. Can connect to QTreeView's collapsed() signal.
References Digikam::AbstractAlbumModel::albumForIndex(), Digikam::Album::id(), and Digikam::AbstractAlbumModel::index().
|
overrideinherited |
References Digikam::Album::childAtRow(), Digikam::AbstractAlbumModel::IncludeRootAlbum, and Digikam::AbstractAlbumModel::parent().
Referenced by Digikam::TagModel::activateFaceTagModel(), Digikam::AbstractAlbumModel::albumForIndex(), albumForIndex(), Digikam::TagModel::albumForIndex(), Digikam::SearchModel::albumForIndex(), Digikam::DateAlbumModel::albumForIndex(), Digikam::AbstractAlbumModel::data(), Digikam::AbstractSpecificAlbumModel::emitDataChangedForChildren(), Digikam::AbstractCountingAlbumModel::excludeChildrenCount(), Digikam::AbstractAlbumModel::flags(), Digikam::AbstractCheckableAlbumModel::flags(), Digikam::AbstractCountingAlbumModel::includeChildrenCount(), Digikam::AbstractCheckableAlbumModel::invertCheckedAlbums(), Digikam::AbstractAlbumModel::mimeData(), Digikam::DateAlbumModel::monthIndexForDate(), Digikam::AbstractAlbumModel::parent(), Digikam::AbstractCheckableAlbumModel::resetAllCheckedAlbums(), Digikam::AbstractAlbumModel::retrieveAlbum(), Digikam::AbstractCheckableAlbumTreeView::rowsInserted(), Digikam::AbstractCheckableAlbumModel::setCheckStateForChildren(), Digikam::AbstractCheckableAlbumModel::setCheckStateForParents(), Digikam::AbstractCountingAlbumModel::setCount(), Digikam::AbstractCheckableAlbumModel::setData(), Digikam::TagModel::setData(), Digikam::AbstractAlbumModel::slotAlbumIconChanged(), Digikam::AbstractAlbumModel::slotAlbumRenamed(), and Digikam::AbstractSpecificAlbumModel::slotGotThumbnailFromIcon().
|
inherited |
Return the QModelIndex for the given album, or an invalid index if the album is not contained in this model.
References Digikam::AbstractAlbumModel::filterAlbum(), Digikam::AbstractAlbumModel::IncludeRootAlbum, and Digikam::Album::rowFromAlbum().
Referenced by Digikam::TagModel::activateFaceTagModel(), Digikam::AbstractSpecificAlbumModel::emitDataChangedForChildren(), Digikam::AlbumFilterModel::indexForAlbum(), Digikam::ContextMenuHelper::Private::indexForAlbumFromAction(), Digikam::AlbumFilterModel::matches(), Digikam::AbstractAlbumModel::parent(), Digikam::AbstractCheckableAlbumModel::resetAllCheckedAlbums(), Digikam::AbstractAlbumModel::rootAlbumIndex(), Digikam::AbstractCheckableAlbumModel::setChecked(), Digikam::AbstractCheckableAlbumModel::setCheckState(), Digikam::AbstractCheckableAlbumModel::setCheckStateForChildren(), Digikam::AbstractCheckableAlbumModel::setCheckStateForParents(), Digikam::AbstractCountingAlbumModel::setCount(), Digikam::AbstractAlbumModel::slotAlbumAboutToBeAdded(), Digikam::AbstractAlbumModel::slotAlbumAboutToBeDeleted(), Digikam::AbstractAlbumModel::slotAlbumIconChanged(), Digikam::AbstractAlbumModel::slotAlbumRenamed(), and Digikam::AbstractSpecificAlbumModel::slotGotThumbnailFromIcon().
|
slotinherited |
Inverts the checked state of all albums under the given parent.
References Digikam::AbstractAlbumModel::albumForIndex(), Digikam::AbstractAlbumModel::index(), Digikam::AbstractAlbumModel::parent(), Digikam::AbstractAlbumModel::rowCount(), and Digikam::AbstractCheckableAlbumModel::toggleChecked().
|
inherited |
|
inherited |
|
inherited |
Returns if the given album has the check state Checked.
Referenced by Digikam::AbstractCheckableAlbumModel::setChecked(), and Digikam::AbstractCheckableAlbumModel::toggleChecked().
|
inherited |
Returns true if the album model a face tag model
Referenced by Digikam::TagModel::decorationRoleData(), and Digikam::AlbumFilterModel::lessThan().
|
inherited |
|
protectedvirtualinherited |
For subclassing convenience: A part of the implementation of itemFlags()
Referenced by Digikam::AbstractAlbumModel::flags().
|
overrideinherited |
|
overrideinherited |
|
overrideinherited |
References Digikam::AbstractAlbumModel::index(), Digikam::AbstractAlbumModel::indexForAlbum(), and Digikam::Album::parent().
Referenced by Digikam::AbstractCheckableAlbumModel::checkAllAlbums(), Digikam::AbstractAlbumModel::hasChildren(), Digikam::AbstractAlbumModel::index(), Digikam::AbstractCheckableAlbumModel::invertCheckedAlbums(), Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums(), Digikam::AbstractAlbumModel::rowCount(), Digikam::AbstractAlbumModel::slotAlbumAboutToBeAdded(), and Digikam::AbstractAlbumModel::slotAlbumAboutToBeDeleted().
Returns a list of album with partially check state Checked.
Referenced by Digikam::AbstractCheckableAlbumTreeView::doSaveState().
|
protectedinherited |
If in AddExcludeTristate mode, changes the icon as to indicate the state.
References Digikam::AbstractCheckableAlbumModel::checkState().
Referenced by decorationRoleData(), and Digikam::TagModel::decorationRoleData().
|
slotinherited |
Resets the checked state of all albums to Qt::Unchecked.
References Digikam::AbstractCheckableAlbumModel::checkStateChanged(), Digikam::AbstractAlbumModel::index(), and Digikam::AbstractAlbumModel::indexForAlbum().
Referenced by Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums(), and Digikam::TagCheckView::slotResetCheckState().
|
slotinherited |
Resets the checked state of all albums under the given parent.
References Digikam::AbstractAlbumModel::parent(), Digikam::AbstractCheckableAlbumModel::resetAllCheckedAlbums(), and Digikam::AbstractAlbumModel::rootAlbumIndex().
Referenced by Digikam::SearchFieldAlbum::reset(), and Digikam::AbstractCheckableAlbumModel::setCheckable().
|
slotinherited |
Resets the checked state of all parents of the child including it.
|
staticinherited |
Returns the album represented by the index. In contrast to albumForIndex(), the index can be from any proxy model, as long as an AbstractAlbumModel is at the end.
References Digikam::AbstractAlbumModel::AlbumPointerRole, and Digikam::AbstractAlbumModel::index().
Referenced by Digikam::AlbumFilterModel::albumForIndex(), and Digikam::AlbumFilterModel::filterAcceptsRow().
|
inherited |
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), Digikam::AbstractAlbumTreeView::setAlbumModel(), Digikam::AbstractCheckableAlbumModel::setRootCheckable(), Digikam::AbstractCountingAlbumModel::setShowCount(), Digikam::DateAlbumModel::setYearMonthMap(), and Digikam::AbstractSpecificAlbumModel::slotReloadThumbnails().
|
signalinherited |
This is initialized once after creation, if the root album becomes available, if it was not already available at time of construction. This is emitted regardless of root album policy.
Referenced by Digikam::AbstractAlbumModel::slotAlbumAdded().
|
inherited |
Returns the root album behavior set for this model
Referenced by Digikam::TagTreeView::setAlbumModel().
|
inherited |
Return the index corresponding to the root album. If the policy is IgnoreRootAlbum, this is an invalid index.
References Digikam::AbstractAlbumModel::indexForAlbum().
Referenced by Digikam::AbstractCheckableAlbumModel::flags(), Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums(), and Digikam::AlbumFilterModel::rootAlbumIndex().
|
inherited |
|
overrideinherited |
|
inherited |
Sets a special tristate mode, which offers the three modes "unchecked", "added" and "excluded", where "excluded" corresponds to partially checked internally, but is reflected in the treeview through the decoration only.
References Digikam::AbstractCheckableAlbumModel::setCheckable(), and Digikam::AbstractCheckableAlbumModel::setTristate().
|
inherited |
Triggers if the albums in this model are checkable.
References Digikam::AbstractCheckableAlbumModel::isCheckable(), and Digikam::AbstractCheckableAlbumModel::resetCheckedAlbums().
Referenced by Digikam::TagsLineEditOverlay::createWidget(), and Digikam::AbstractCheckableAlbumModel::setAddExcludeTristate().
|
slotinherited |
Sets the check state of album to Checked or Unchecked.
References Digikam::AbstractAlbumModel::indexForAlbum(), Digikam::AbstractCheckableAlbumModel::isChecked(), and Digikam::AbstractCheckableAlbumModel::setData().
Referenced by Digikam::SearchFieldAlbum::read(), Digikam::AbstractCheckableAlbumModel::setRootCheckable(), and Digikam::AbstractCheckableAlbumModel::toggleChecked().
|
slotinherited |
Sets the check state of the album.
References Digikam::AbstractAlbumModel::indexForAlbum(), and Digikam::AbstractCheckableAlbumModel::setData().
Referenced by Digikam::TagFilterView::handleCustomContextMenuAction(), and Digikam::AbstractCheckableAlbumTreeView::middleButtonPressed().
|
slotinherited |
Sets the checked state recursively for all children of and the given album.
References Digikam::AbstractAlbumModel::index(), and Digikam::AbstractAlbumModel::indexForAlbum().
|
slotinherited |
Sets the checked state recursively for all parents of and the given album.
References Digikam::AbstractAlbumModel::index(), and Digikam::AbstractAlbumModel::indexForAlbum().
|
protectedinherited |
|
protectedinherited |
If you do not use setCountMap, excludeChildrenCount and includeChildrenCount, you can set a count here.
References Digikam::Album::id(), Digikam::AbstractAlbumModel::index(), and Digikam::AbstractAlbumModel::indexForAlbum().
|
slotinherited |
Enable displaying the count. Set a map of album id -> count (excluding children). If an album is not contained, no count is displayed. To display a count of 0, there must be an entry album id -> 0.
References Digikam::AbstractCountingAlbumModel::albumForId().
Referenced by Digikam::TagModel::activateFaceTagModel(), AlbumModel(), Digikam::DateAlbumModel::setYearMonthMap(), Digikam::AbstractCountingAlbumModel::slotAlbumMoved(), and Digikam::TagModel::TagModel().
|
overrideprotectedinherited |
References Digikam::AbstractAlbumModel::albumForIndex(), Digikam::AbstractCheckableAlbumModel::checkStateChanged(), Digikam::AbstractAlbumModel::index(), and value.
Referenced by Digikam::AbstractCheckableAlbumModel::setChecked(), Digikam::AbstractCheckableAlbumModel::setCheckState(), and Digikam::TagModel::setData().
|
inherited |
Set a drag drop handler
Referenced by Digikam::AlbumTreeView::setAlbumModel(), and Digikam::TagTreeView::setAlbumModel().
|
protectedinherited |
Switch on drag and drop globally for all items. Default is true. For per-item cases reimplement itemFlags().
|
protectedinherited |
|
protectedinherited |
Referenced by Digikam::TagModel::activateFaceTagModel().
|
inherited |
Triggers if the root album is checkable. Only applicable if the root album is contained at all, and if isCheckable() is true.
References Digikam::AbstractCheckableAlbumModel::isCheckable(), Digikam::AbstractAlbumModel::rootAlbum(), and Digikam::AbstractCheckableAlbumModel::setChecked().
Referenced by Digikam::TagsLineEditOverlay::createWidget().
|
slotinherited |
Call to enable or disable showing the count. Default is false.
References Digikam::AbstractSpecificAlbumModel::emitDataChangedForChildren(), and Digikam::AbstractAlbumModel::rootAlbum().
Referenced by Digikam::SearchModel::SearchModel().
|
inherited |
Triggers if the albums in this model are tristate. Used to allow the user to actively set a third state, don't use if you only want to display a third state. Note that you want to set setCheckable(true) before.
References Digikam::AbstractCheckableAlbumModel::isTristate().
Referenced by Digikam::AbstractCheckableAlbumModel::setAddExcludeTristate().
|
protectedinherited |
Call this method in children class constructors to init signal/slots connections.
References Digikam::AlbumManager::instance(), and Digikam::AbstractCountingAlbumModel::slotAlbumMoved().
Referenced by Digikam::AbstractCheckableAlbumModel::AbstractCheckableAlbumModel(), and Digikam::DateAlbumModel::DateAlbumModel().
|
protectedinherited |
You need to call this from your constructor if you intend to load the thumbnail facilities of this class.
References Digikam::AlbumThumbnailLoader::instance(), Digikam::AbstractSpecificAlbumModel::slotGotThumbnailFromIcon(), Digikam::AbstractSpecificAlbumModel::slotReloadThumbnails(), and Digikam::AbstractSpecificAlbumModel::slotThumbnailLost().
Referenced by AlbumModel(), and Digikam::TagModel::TagModel().
|
inherited |
Referenced by albumData().
|
protectedslotinherited |
References Digikam::AbstractAlbumModel::filterAlbum(), Digikam::AbstractAlbumModel::IgnoreRootAlbum, Digikam::AbstractAlbumModel::indexForAlbum(), Digikam::Album::isRoot(), Digikam::AbstractAlbumModel::parent(), and Digikam::Album::rowFromAlbum().
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel().
|
protectedslotinherited |
References Digikam::AbstractAlbumModel::albumCleared(), Digikam::AbstractAlbumModel::filterAlbum(), Digikam::AbstractAlbumModel::IgnoreRootAlbum, Digikam::AbstractAlbumModel::indexForAlbum(), Digikam::Album::isRoot(), Digikam::Album::parent(), Digikam::AbstractAlbumModel::parent(), and Digikam::Album::rowFromAlbum().
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel().
|
protectedslotinherited |
References Digikam::AbstractAlbumModel::rootAlbumAvailable().
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel().
|
protectedslotinherited |
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel().
|
protectedslotinherited |
|
protectedslotinherited |
References Digikam::AbstractCountingAlbumModel::setCountMap().
Referenced by Digikam::AbstractCountingAlbumModel::setup().
|
protectedslotinherited |
|
protectedslotinherited |
References Digikam::AbstractAlbumModel::allAlbumsCleared().
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel().
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
Referenced by Digikam::AbstractSpecificAlbumModel::setupThumbnailLoading().
|
protectedvirtualinherited |
For subclassing convenience: A part of the implementation of data()
Reimplemented in Digikam::DateAlbumModel.
References Digikam::Album::title().
Referenced by Digikam::AbstractAlbumModel::albumData().
|
overrideinherited |
References Digikam::CopyAction, and Digikam::MoveAction.
|
slotinherited |
Toggles the check state of album between Checked or Unchecked.
References Digikam::AbstractCheckableAlbumModel::checkState(), Digikam::AbstractCheckableAlbumModel::isChecked(), and Digikam::AbstractCheckableAlbumModel::setChecked().
Referenced by Digikam::AbstractCheckableAlbumModel::invertCheckedAlbums(), and Digikam::AbstractCheckableAlbumTreeView::middleButtonPressed().
|
protectedinherited |