digiKam
Digikam::DigikamItemView Class Referenceabstract
+ Inheritance diagram for Digikam::DigikamItemView:

Classes

class  Private
 

Public Slots

void assignRating (const QList< QModelIndex > &index, int rating)
 
void confirmFaces (const QList< QModelIndex > &indexes, int tagId)
 
void copy () override
 
void cut () override
 
void deleteSelected (const ItemViewUtilities::DeleteMode deleteMode=ItemViewUtilities::DeleteUseTrash)
 
void deleteSelectedDirectly (const ItemViewUtilities::DeleteMode deleteMode=ItemViewUtilities::DeleteUseTrash)
 
void dragDropSort (const ItemInfo &pick, const QList< ItemInfo > &infos)
 
QList< int > getFaceIds (const QList< QModelIndex > &indexes) const
 
void hideIndexNotification ()
 
void hintAt (const ItemInfo &info)
 
void ignoreFaces (const QList< QModelIndex > &indexes)
 
void openAlbum (const QList< Album * > &album)
 
void openFile (const ItemInfo &info)
 
void paste () override
 
void rejectFaces (const QList< QModelIndex > &indexes)
 
void removeFaces (const QList< QModelIndex > &indexes)
 
void rename ()
 
void setCurrentInfo (const ItemInfo &info)
 
void setCurrentUrl (const QUrl &url)
 
void setCurrentUrlWhenAvailable (const QUrl &url)
 
void setCurrentWhenAvailable (qlonglong imageId)
 
void setFaceMode (bool on)
 
void setSelectedItemInfos (const QList< ItemInfo > &infos)
 
void setSelectedUrls (const QList< QUrl > &urlList)
 
void setThumbnailSize (int size)
 
void showIndexNotification (const QModelIndex &index, const QString &message)
 
void unknownFaces (const QList< QModelIndex > &indexes)
 

Signals

void clicked (const QMouseEvent *e, const QModelIndex &index)
 
void currentChanged (const ItemInfo &info)
 
void deselected (const QList< ItemInfo > &nowDeselectedInfos)
 Emitted when items are deselected. There may be other selected infos left. This signal is not emitted when the model is reset; then only selectionCleared is emitted. More...
 
void entered (const QMouseEvent *e, const QModelIndex &index)
 
void imageActivated (const ItemInfo &info)
 Emitted when the given image is activated. Info is never null. More...
 
void keyPressed (QKeyEvent *e)
 
void modelChanged ()
 Emitted when a new model is set. More...
 
void previewRequested (const ItemInfo &info)
 
void selected (const QList< ItemInfo > &newSelectedInfos)
 Emitted when new items are selected. The parameter includes only the newly selected infos, there may be other already selected infos. More...
 
void selectionChanged ()
 
void selectionCleared ()
 
void signalSeparationModeChanged (int category)
 
void signalShowContextMenu (QContextMenuEvent *event, const QList< QAction * > &actions=QList< QAction * >())
 
void signalShowContextMenuOnInfo (QContextMenuEvent *event, const ItemInfo &info, const QList< QAction * > &actions, ItemFilterModel *filterModel)
 
void signalShowGroupContextMenu (QContextMenuEvent *event, const QList< ItemInfo > &selectedInfos, ItemFilterModel *filterModel)
 
void viewportClicked (const QMouseEvent *e)
 
void zoomInStep ()
 
void zoomOutStep ()
 

Public Member Functions

void addOverlay (ItemDelegateOverlay *overlay, ItemDelegate *delegate=nullptr)
 Add and remove an overlay. It will as well be removed automatically when destroyed. Unless you pass a different delegate, the current delegate will be used. More...
 
void addSelectionOverlay (ItemDelegate *delegate=nullptr)
 
AlbumalbumAt (const QPoint &pos) const
 
ItemInfoList allItemInfos () const
 
ItemInfoList allItemInfos (bool grouping=false) const
 
bool allNeedGroupResolving (const ApplicationSettings::OperationType type) const
 
QList< QUrl > allUrls () const
 
void awayFromSelection ()
 
virtual QModelIndexList categorizedIndexesIn (const QRect &rect) const
 
virtual QModelIndex categoryAt (const QPoint &point) const
 
DCategoryDrawercategoryDrawer () const
 
virtual QItemSelectionRange categoryRange (const QModelIndex &index) const
 
virtual QRect categoryVisualRect (const QModelIndex &index) const
 
AlbumcurrentAlbum () const
 
ItemInfo currentInfo () const
 
QUrl currentUrl () const
 
ItemDelegatedelegate () const
 
 DigikamItemView (QWidget *const parent=nullptr)
 
int fitToWidthIcons ()
 
bool getFaceMode () const
 
ItemInfoList getHiddenGroupedInfos (const ItemInfoList &infos) const
 
QItemSelectionModel * getSelectionModel () const
 
ItemAlbumFilterModelimageAlbumFilterModel () const
 
ItemAlbumModelimageAlbumModel () const
 Returns 0 if the ItemModel is not an ItemAlbumModel. More...
 
ItemFilterModelimageFilterModel () const
 Returns any ItemFilterMode in chain. May not be sourceModel() More...
 
ItemModelimageModel () const
 
ImageSortFilterModelimageSortFilterModel () const
 
ItemThumbnailModelimageThumbnailModel () const
 Returns 0 if the ItemModel is not an ItemThumbnailModel. More...
 
QModelIndex indexAt (const QPoint &point) const override
 
QModelIndex indexForInfo (const ItemInfo &info) const
 
void invertSelection ()
 
bool isToolTipEnabled () const
 
bool needGroupResolving (ApplicationSettings::OperationType type, const ItemInfoList &infos) const
 
ItemInfo nextInfo (const ItemInfo &info)
 
ItemInfo nextInOrder (const ItemInfo &startingPoint, int nth)
 
int numberOfSelectedIndexes () const
 
ItemInfo previousInfo (const ItemInfo &info)
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
ItemInfoList resolveGrouping (const ItemInfoList &infos) const
 
void scrollToRelaxed (const QModelIndex &index, ScrollHint hint=EnsureVisible)
 
ItemInfoList selectedItemInfos () const
 
ItemInfoList selectedItemInfos (bool grouping=false) const
 
ItemInfoList selectedItemInfosCurrentFirst () const
 
ItemInfoList selectedItemInfosCurrentFirst (bool grouping=false) const
 
bool selectedNeedGroupResolving (const ApplicationSettings::OperationType type) const
 
void setCategoryDrawer (DCategoryDrawer *categoryDrawer)
 
void setDrawDraggedItems (bool drawDraggedItems)
 
void setGridSize (const QSize &size)
 
void setModel (QAbstractItemModel *model) override
 
void setModels (ItemModel *model, ImageSortFilterModel *filterModel)
 
void setScrollCurrentToCenter (bool enabled)
 
void setScrollStepGranularity (int factor)
 
void setSelectedIndexes (const QList< QModelIndex > &indexes)
 
void setSpacing (int spacing)
 
void setThumbnailSize (const ThumbnailSize &size) override
 
void setToolTipEnabled (bool enabled)
 
void setUsePointingHandCursor (bool useCursor)
 
ThumbnailSize thumbnailSize () const
 
void toFirstIndex ()
 
void toIndex (const QModelIndex &index)
 
void toIndex (const QUrl &url)
 
void toLastIndex ()
 
void toNextIndex ()
 
void toPreviousIndex ()
 
ItemViewUtilitiesutilities () const
 
QRect visualRect (const QModelIndex &index) const override
 
 ~DigikamItemView () override
 

Protected Slots

void groupIndicatorClicked (const QModelIndex &index)
 
void layoutAboutToBeChanged ()
 
void layoutWasChanged ()
 
virtual void rowsInsertedArtifficial (const QModelIndex &parent, int start, int end)
 
void showGroupContextMenu (const QModelIndex &index, QContextMenuEvent *event)
 
void slotActivated (const QModelIndex &index)
 
void slotClicked (const QModelIndex &index)
 
void slotCurrentUrlTimer ()
 
void slotEntered (const QModelIndex &index)
 
void slotItemInfosAdded ()
 
virtual void slotLayoutChanged ()
 
virtual void slotThemeChanged ()
 

Protected Member Functions

void activated (const ItemInfo &info, Qt::KeyboardModifiers modifiers) override
 Reimplement these in a subclass. More...
 
void addAssignNameOverlay (ItemDelegate *delegate=nullptr)
 
void addRejectionOverlay (ItemDelegate *delegate=nullptr)
 
virtual QAbstractItemView * asView ()=0
 
void contextMenuEvent (QContextMenuEvent *event) override
 reimplemented from parent class More...
 
void currentChanged (const QModelIndex &index, const QModelIndex &previous) override
 
bool decodeIsCutSelection (const QMimeData *mimeData)
 
AbstractItemDragDropHandlerdragDropHandler () const override
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *e)
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void dropEvent (QDropEvent *e)
 
void dropEvent (QDropEvent *event) override
 
void encodeIsCutSelection (QMimeData *mime, bool isCutSelection)
 
QSortFilterProxyModel * filterModel () const override
 
bool hasHiddenGroupedImages (const ItemInfo &info) const override
 must be implemented by parent view More...
 
ItemInfo imageInfo (const QModelIndex &index) const
 
ItemInfoList imageInfos (const QList< QModelIndex > &indexes) const
 
ItemInfoList imageInfos (const QList< QModelIndex > &indexes, ApplicationSettings::OperationType type) const
 
void indexActivated (const QModelIndex &index, Qt::KeyboardModifiers modifiers) override
 
QModelIndex indexForCategoryAt (const QPoint &pos) const
 
void installDefaultModels ()
 install default ItemAlbumModel and filter model, ready for use More...
 
void keyPressEvent (QKeyEvent *event) override
 
void leaveEvent (QEvent *event) override
 
QModelIndex mapIndexForDragDrop (const QModelIndex &index) const override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
QModelIndex nextIndexHint (const QModelIndex &indexToAnchor, const QItemSelectionRange &removed) const override
 
void paintEvent (QPaintEvent *event) override
 
QPixmap pixmapForDrag (const QList< QModelIndex > &indexes) const override
 
void reset () override
 
void resizeEvent (QResizeEvent *e) override
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
 
void rowsInserted (const QModelIndex &parent, int start, int end) override
 
void rowsRemoved (const QModelIndex &parent, int start, int end) override
 
void selectionChanged (const QItemSelection &, const QItemSelection &) override
 
void setItemDelegate (DItemDelegate *delegate)
 
void setItemDelegate (ItemDelegate *delegate)
 
void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) override
 
void setToolTip (ItemViewToolTip *tip)
 
void showContextMenu (QContextMenuEvent *event) override
 
void showContextMenuOnIndex (QContextMenuEvent *event, const QModelIndex &index) override
 Reimplement these in a subclass. More...
 
void showContextMenuOnInfo (QContextMenuEvent *event, const ItemInfo &info) override
 
virtual bool showToolTip (const QModelIndex &index, QStyleOptionViewItem &option, QHelpEvent *e=nullptr)
 
void slotSetupChanged () override
 
void startDrag (Qt::DropActions supportedActions)
 
void startDrag (Qt::DropActions supportedActions) override
 
void updateDelegateSizes ()
 
void updateGeometries () override
 
void userInteraction ()
 
bool viewportEvent (QEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 

Constructor & Destructor Documentation

◆ DigikamItemView()

Digikam::DigikamItemView::DigikamItemView ( QWidget *const  parent = nullptr)
explicit

References addAssignNameOverlay(), Digikam::ItemCategorizedView::addOverlay(), addRejectionOverlay(), Digikam::ItemCategorizedView::addSelectionOverlay(), assignRating(), Digikam::ItemSortSettings::CategoryByAlbum, Digikam::FacePipeline::construct(), Digikam::ThumbnailLoadThread::defaultIconViewThread(), Digikam::ItemCategorizedView::dragDropHandler(), dragDropSort(), Digikam::DigikamItemView::Private::editPipeline, Digikam::DigikamItemView::Private::faceDelegate, Digikam::DigikamItemView::Private::fullscreenOverlay, Digikam::ApplicationSettings::getDefaultIconSize(), Digikam::ApplicationSettings::getImageSeparationMode(), Digikam::ApplicationSettings::getImageSeparationSortOrder(), Digikam::ApplicationSettings::getImageSorting(), Digikam::ApplicationSettings::getImageSortOrder(), groupIndicatorClicked(), Digikam::ItemCategorizedView::imageAlbumModel(), Digikam::ItemCategorizedView::imageFilterModel(), Digikam::ItemCategorizedView::imageModel(), Digikam::ItemCategorizedView::installDefaultModels(), Digikam::FileActionMngr::instance(), Digikam::ApplicationSettings::instance(), Digikam::ItemFullScreenOverlay::instance(), Digikam::ApplicationSettings::isStringTypeNatural(), Digikam::ItemRotateOverlay::left(), Digikam::DigikamItemView::Private::normalDelegate, Digikam::FacePipeline::plugDatabaseEditor(), Digikam::FacePipeline::plugTrainer(), Digikam::ItemRotateOverlay::right(), Digikam::DigikamItemView::Private::rotateLeftOverlay, Digikam::DigikamItemView::Private::rotateRightOverlay, Digikam::ItemFilterModel::setCategorizationMode(), Digikam::ItemFilterModel::setCategorizationSortOrder(), Digikam::ItemCategorizedView::setCurrentUrlWhenAvailable(), Digikam::DragDropModelImplementation::setDragDropHandler(), Digikam::ItemCategorizedView::setItemDelegate(), Digikam::ItemThumbnailModel::setPreloadThumbnails(), Digikam::ItemFilterModel::setSortOrder(), Digikam::ItemFilterModel::setSortRole(), Digikam::ItemViewCategorized::setSpacing(), Digikam::ItemFilterModel::setStringTypeNatural(), Digikam::ItemThumbnailModel::setThumbnailLoadThread(), setThumbnailSize(), Digikam::ItemViewCategorized::setToolTipEnabled(), Digikam::ApplicationSettings::setupChanged(), showGroupContextMenu(), Digikam::ApplicationSettings::showToolTipsIsValid(), slotSetupChanged(), Digikam::DigikamItemView::Private::updateOverlays(), and Digikam::DigikamItemView::Private::utilities.

◆ ~DigikamItemView()

Digikam::DigikamItemView::~DigikamItemView ( )
override

Member Function Documentation

◆ activated()

◆ addAssignNameOverlay()

void Digikam::DigikamItemView::addAssignNameOverlay ( ItemDelegate delegate = nullptr)
protected

◆ addOverlay()

void Digikam::ItemCategorizedView::addOverlay ( ItemDelegateOverlay overlay,
ItemDelegate delegate = nullptr 
)
inherited

◆ addRejectionOverlay()

void Digikam::DigikamItemView::addRejectionOverlay ( ItemDelegate delegate = nullptr)
protected

◆ addSelectionOverlay()

void Digikam::ItemCategorizedView::addSelectionOverlay ( ItemDelegate delegate = nullptr)
inherited

◆ albumAt()

Album * Digikam::ItemCategorizedView::albumAt ( const QPoint &  pos) const
inherited

◆ allItemInfos() [1/2]

◆ allItemInfos() [2/2]

ItemInfoList Digikam::DigikamItemView::allItemInfos ( bool  grouping = false) const

◆ allNeedGroupResolving()

◆ allUrls()

QList< QUrl > Digikam::ItemCategorizedView::allUrls ( ) const
inherited

◆ assignRating

void Digikam::DigikamItemView::assignRating ( const QList< QModelIndex > &  index,
int  rating 
)
slot

◆ asView()

virtual QAbstractItemView* Digikam::DragDropViewImplementation::asView ( )
protectedpure virtualinherited

◆ awayFromSelection()

◆ categorizedIndexesIn()

QModelIndexList Digikam::DCategorizedView::categorizedIndexesIn ( const QRect &  rect) const
virtualinherited

This method will return all indexes whose visual rect intersects rect.

Parameters
rectrectangle to test intersection with
Note
Returns an empty list if the view is not categorized.

References Digikam::DCategorizedView::Private::categoryDrawer, Digikam::DCategorizedView::Private::intersectionSet(), Digikam::DCategorizedSortFilterProxyModel::isCategorizedModel(), and Digikam::DCategorizedView::Private::proxyModel.

◆ categoryAt()

QModelIndex Digikam::DCategorizedView::categoryAt ( const QPoint &  point) const
virtualinherited

◆ categoryDrawer()

◆ categoryRange()

QItemSelectionRange Digikam::DCategorizedView::categoryRange ( const QModelIndex &  index) const
virtualinherited

◆ categoryVisualRect()

QRect Digikam::DCategorizedView::categoryVisualRect ( const QModelIndex &  index) const
virtualinherited

◆ clicked

void Digikam::ItemViewCategorized::clicked ( const QMouseEvent *  e,
const QModelIndex &  index 
)
signalinherited

For overlays: Like the respective parent class signals, but with additional info. Do not change the mouse events.

Referenced by Digikam::ItemViewCategorized::ItemViewCategorized(), and Digikam::ItemViewCategorized::slotClicked().

◆ confirmFaces

◆ contextMenuEvent()

void Digikam::ItemViewCategorized::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedinherited

◆ copy

void Digikam::ItemViewCategorized::copy ( )
inlineoverrideslotinherited

◆ currentAlbum()

◆ currentChanged [1/2]

void Digikam::ItemCategorizedView::currentChanged ( const ItemInfo info)
signalinherited

◆ currentChanged() [2/2]

void Digikam::ItemCategorizedView::currentChanged ( const QModelIndex &  index,
const QModelIndex &  previous 
)
overrideprotectedinherited

◆ currentInfo()

◆ currentUrl()

QUrl Digikam::ItemCategorizedView::currentUrl ( ) const
inherited

◆ cut

void Digikam::ItemViewCategorized::cut ( )
inlineoverrideslotinherited

◆ decodeIsCutSelection()

bool Digikam::ItemViewCategorized::decodeIsCutSelection ( const QMimeData *  mimeData)
protectedinherited

◆ delegate()

◆ deleteSelected

◆ deleteSelectedDirectly

◆ deselected

void Digikam::ItemCategorizedView::deselected ( const QList< ItemInfo > &  nowDeselectedInfos)
signalinherited

Emitted when items are deselected. There may be other selected infos left. This signal is not emitted when the model is reset; then only selectionCleared is emitted.

Referenced by Digikam::ItemCategorizedView::selectionChanged().

◆ dragDropHandler()

AbstractItemDragDropHandler * Digikam::ItemCategorizedView::dragDropHandler ( ) const
overrideprotectedvirtualinherited

You need to implement these three methods Returns the drag drop handler.

Implements Digikam::DragDropViewImplementation.

Referenced by DigikamItemView().

◆ dragDropSort

◆ dragEnterEvent()

void Digikam::DragDropViewImplementation::dragEnterEvent ( QDragEnterEvent *  event)
protectedinherited

Implements the relevant QAbstractItemView methods for drag and drop.

References Digikam::AbstractItemDragDropHandler::acceptsMimeData(), and Digikam::DragDropViewImplementation::dragDropHandler().

◆ dragLeaveEvent()

void Digikam::DCategorizedView::dragLeaveEvent ( QDragLeaveEvent *  event)
overrideprotectedinherited

◆ dragMoveEvent() [1/2]

◆ dragMoveEvent() [2/2]

◆ dropEvent() [1/2]

◆ dropEvent() [2/2]

void Digikam::DCategorizedView::dropEvent ( QDropEvent *  event)
overrideprotectedinherited

◆ encodeIsCutSelection()

void Digikam::ItemViewCategorized::encodeIsCutSelection ( QMimeData *  mime,
bool  isCutSelection 
)
protectedinherited

◆ entered

void Digikam::ItemViewCategorized::entered ( const QMouseEvent *  e,
const QModelIndex &  index 
)
signalinherited

◆ filterModel()

QSortFilterProxyModel * Digikam::ItemCategorizedView::filterModel ( ) const
overrideprotectedvirtualinherited

◆ fitToWidthIcons()

int Digikam::DigikamItemView::fitToWidthIcons ( )

◆ getFaceIds

QList< int > Digikam::DigikamItemView::getFaceIds ( const QList< QModelIndex > &  indexes) const
slot

◆ getFaceMode()

bool Digikam::DigikamItemView::getFaceMode ( ) const

◆ getHiddenGroupedInfos()

ItemInfoList Digikam::GroupingViewImplementation::getHiddenGroupedInfos ( const ItemInfoList infos) const
inherited

◆ getSelectionModel()

QItemSelectionModel * Digikam::ItemCategorizedView::getSelectionModel ( ) const
inherited

◆ groupIndicatorClicked

◆ hasHiddenGroupedImages()

bool Digikam::DigikamItemView::hasHiddenGroupedImages ( const ItemInfo ) const
overrideprotectedvirtual

◆ hideIndexNotification

◆ hintAt

void Digikam::ItemCategorizedView::hintAt ( const ItemInfo info)
slotinherited

Does something to gain attention for info, but not changing current selection.

References Digikam::ItemInfo::isNull(), and Digikam::ItemViewCategorized::scrollTo().

◆ ignoreFaces

◆ imageActivated

void Digikam::ItemCategorizedView::imageActivated ( const ItemInfo info)
signalinherited

Emitted when the given image is activated. Info is never null.

Referenced by Digikam::ItemCategorizedView::indexActivated().

◆ imageAlbumFilterModel()

ItemAlbumFilterModel * Digikam::ItemCategorizedView::imageAlbumFilterModel ( ) const
inherited

◆ imageAlbumModel()

◆ imageFilterModel()

◆ imageInfo()

◆ imageInfos() [1/2]

◆ imageInfos() [2/2]

◆ imageModel()

ItemModel * Digikam::ItemCategorizedView::imageModel ( ) const
inherited

◆ imageSortFilterModel()

ImageSortFilterModel * Digikam::ItemCategorizedView::imageSortFilterModel ( ) const
inherited

◆ imageThumbnailModel()

ItemThumbnailModel * Digikam::ItemCategorizedView::imageThumbnailModel ( ) const
inherited

Returns 0 if the ItemModel is not an ItemThumbnailModel.

Referenced by setThumbnailSize().

◆ indexActivated()

void Digikam::ItemCategorizedView::indexActivated ( const QModelIndex &  index,
Qt::KeyboardModifiers  modifiers 
)
overrideprotectedvirtualinherited

◆ indexAt()

◆ indexForCategoryAt()

QModelIndex Digikam::ItemViewCategorized::indexForCategoryAt ( const QPoint &  pos) const
protectedinherited

Returns an index that is representative for the category at position pos

References Digikam::DCategorizedView::categoryAt().

Referenced by Digikam::ItemCategorizedView::albumAt().

◆ indexForInfo()

QModelIndex Digikam::ItemCategorizedView::indexForInfo ( const ItemInfo info) const
inherited

◆ installDefaultModels()

void Digikam::ItemCategorizedView::installDefaultModels ( )
protectedinherited

◆ invertSelection()

void Digikam::ItemViewCategorized::invertSelection ( )
inherited

◆ isToolTipEnabled()

bool Digikam::ItemViewCategorized::isToolTipEnabled ( ) const
inherited

◆ keyPressed

void Digikam::ItemViewCategorized::keyPressed ( QKeyEvent *  e)
signalinherited

Remember you may want to check if the event is accepted or ignored. This signal is emitted after being handled by this widget. You can accept it if ignored.

Referenced by Digikam::ItemViewCategorized::keyPressEvent().

◆ keyPressEvent()

void Digikam::ItemViewCategorized::keyPressEvent ( QKeyEvent *  event)
overrideprotectedinherited

◆ layoutAboutToBeChanged

◆ layoutWasChanged

◆ leaveEvent()

void Digikam::ItemViewCategorized::leaveEvent ( QEvent *  event)
overrideprotectedinherited

◆ mapIndexForDragDrop()

QModelIndex Digikam::ItemViewCategorized::mapIndexForDragDrop ( const QModelIndex &  index) const
overrideprotectedvirtualinherited

◆ modelChanged

void Digikam::ItemCategorizedView::modelChanged ( )
signalinherited

Emitted when a new model is set.

Referenced by Digikam::ItemCategorizedView::setModels().

◆ mouseMoveEvent()

void Digikam::ItemViewCategorized::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedinherited

◆ mousePressEvent()

void Digikam::ItemViewCategorized::mousePressEvent ( QMouseEvent *  event)
overrideprotectedinherited

◆ mouseReleaseEvent()

void Digikam::ItemViewCategorized::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedinherited

◆ moveCursor()

QModelIndex Digikam::ItemViewCategorized::moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
)
overrideprotectedinherited

◆ needGroupResolving()

◆ nextIndexHint()

QModelIndex Digikam::ItemCategorizedView::nextIndexHint ( const QModelIndex &  indexToAnchor,
const QItemSelectionRange &  removed 
) const
overrideprotectedvirtualinherited

Assuming the given indexes would be removed (hypothetically!), return the index to be selected instead, starting from anchor. The default implementation returns the next remaining sibling.

Reimplemented from Digikam::ItemViewCategorized.

References Digikam::ItemCategorizedView::imageInfo(), and Digikam::ItemViewCategorized::nextIndexHint().

◆ nextInfo()

ItemInfo Digikam::ItemCategorizedView::nextInfo ( const ItemInfo info)
inlineinherited

◆ nextInOrder()

ItemInfo Digikam::ItemCategorizedView::nextInOrder ( const ItemInfo startingPoint,
int  nth 
)
inherited

Returns the n-th info after the given one. Specifically, return the previous info for nth = -1 and the next info for n = 1. Returns a null info if either startingPoint or the nth info are not contained in the model.

References Digikam::ItemCategorizedView::imageInfo().

Referenced by Digikam::ItemCategorizedView::nextInfo(), Digikam::ItemCategorizedView::previousInfo(), and rename().

◆ numberOfSelectedIndexes()

int Digikam::ItemViewCategorized::numberOfSelectedIndexes ( ) const
inherited

◆ openAlbum

void Digikam::ItemCategorizedView::openAlbum ( const QList< Album * > &  album)
slotinherited

◆ openFile

◆ paintEvent()

◆ paste

void Digikam::ItemViewCategorized::paste ( )
inlineoverrideslotinherited

◆ pixmapForDrag()

QPixmap Digikam::ItemViewCategorized::pixmapForDrag ( const QList< QModelIndex > &  indexes) const
overrideprotectedvirtualinherited

Creates a pixmap for dragging the given indexes.

Implements Digikam::DragDropViewImplementation.

◆ previewRequested

void Digikam::DigikamItemView::previewRequested ( const ItemInfo info)
signal

Referenced by activated().

◆ previousInfo()

ItemInfo Digikam::ItemCategorizedView::previousInfo ( const ItemInfo info)
inlineinherited

◆ rejectFaces

void Digikam::DigikamItemView::rejectFaces ( const QList< QModelIndex > &  indexes)
slot

◆ removeFaces

◆ removeOverlay()

◆ rename

◆ reset()

void Digikam::ItemViewCategorized::reset ( )
overrideprotectedinherited

◆ resizeEvent()

void Digikam::ItemViewCategorized::resizeEvent ( QResizeEvent *  e)
overrideprotectedinherited

◆ resolveGrouping()

ItemInfoList Digikam::GroupingViewImplementation::resolveGrouping ( const ItemInfoList infos) const
inherited

◆ rowsAboutToBeRemoved()

void Digikam::ItemViewCategorized::rowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideprotectedinherited

◆ rowsInserted()

void Digikam::ItemViewCategorized::rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideprotectedinherited

◆ rowsInsertedArtifficial

◆ rowsRemoved()

void Digikam::ItemViewCategorized::rowsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideprotectedvirtualinherited

◆ scrollToRelaxed()

void Digikam::ItemViewCategorized::scrollToRelaxed ( const QModelIndex &  index,
ScrollHint  hint = EnsureVisible 
)
inherited

Like scrollTo, but only scrolls if the index is not visible, regardless of hint.

References Digikam::ItemViewCategorized::scrollTo(), and Digikam::DCategorizedView::visualRect().

Referenced by Digikam::ItemViewCategorized::layoutWasChanged(), and Digikam::ItemViewCategorized::resizeEvent().

◆ selected

void Digikam::ItemCategorizedView::selected ( const QList< ItemInfo > &  newSelectedInfos)
signalinherited

Emitted when new items are selected. The parameter includes only the newly selected infos, there may be other already selected infos.

Referenced by Digikam::ItemCategorizedView::selectionChanged().

◆ selectedItemInfos() [1/2]

ItemInfoList Digikam::ItemCategorizedView::selectedItemInfos ( ) const
inherited

◆ selectedItemInfos() [2/2]

ItemInfoList Digikam::DigikamItemView::selectedItemInfos ( bool  grouping = false) const

◆ selectedItemInfosCurrentFirst() [1/2]

ItemInfoList Digikam::ItemCategorizedView::selectedItemInfosCurrentFirst ( ) const
inherited

◆ selectedItemInfosCurrentFirst() [2/2]

ItemInfoList Digikam::DigikamItemView::selectedItemInfosCurrentFirst ( bool  grouping = false) const

◆ selectedNeedGroupResolving()

◆ selectionChanged [1/2]

void Digikam::ItemViewCategorized::selectionChanged ( )
signalinherited

◆ selectionChanged() [2/2]

void Digikam::ItemCategorizedView::selectionChanged ( const QItemSelection &  selectedItems,
const QItemSelection &  deselectedItems 
)
overrideprotectedinherited

◆ selectionCleared

void Digikam::ItemViewCategorized::selectionCleared ( )
signalinherited

Emitted when the selection is completely cleared.

Referenced by Digikam::ItemViewCategorized::reset(), and Digikam::ItemViewCategorized::selectionChanged().

◆ setCategoryDrawer()

◆ setCurrentInfo

void Digikam::ItemCategorizedView::setCurrentInfo ( const ItemInfo info)
slotinherited

Set as current item the item identified by the imageinfo.

Referenced by Digikam::LightTableWindow::setLeftRightItems().

◆ setCurrentUrl

void Digikam::ItemCategorizedView::setCurrentUrl ( const QUrl &  url)
slotinherited

Set as current item the item identified by its file url.

Referenced by rename(), and Digikam::ItemCategorizedView::slotCurrentUrlTimer().

◆ setCurrentUrlWhenAvailable

void Digikam::ItemCategorizedView::setCurrentUrlWhenAvailable ( const QUrl &  url)
slotinherited

Set as current item when it becomes available, the item identified by its file url.

Referenced by DigikamItemView(), and Digikam::ItemIconView::slotSetCurrentUrlWhenAvailable().

◆ setCurrentWhenAvailable

void Digikam::ItemCategorizedView::setCurrentWhenAvailable ( qlonglong  imageId)
slotinherited

Scroll the view to the given item when it becomes available.

Referenced by Digikam::LightTableWindow::loadItemInfos(), and Digikam::ItemIconView::slotSetCurrentWhenAvailable().

◆ setDrawDraggedItems()

void Digikam::DCategorizedView::setDrawDraggedItems ( bool  drawDraggedItems)
inherited

Switch on drawing of dragged items. Default: on. While dragging over the view, dragged items will be drawn transparently following the mouse cursor.

Parameters
drawDraggedItemsif true, dragged items will be drawn

References Digikam::DCategorizedView::Private::drawItemsWhileDragging.

Referenced by Digikam::ItemViewCategorized::ItemViewCategorized().

◆ setFaceMode

◆ setGridSize()

void Digikam::DCategorizedView::setGridSize ( const QSize &  size)
inherited

◆ setItemDelegate() [1/2]

void Digikam::ItemViewCategorized::setItemDelegate ( DItemDelegate delegate)
protectedinherited

◆ setItemDelegate() [2/2]

◆ setModel()

◆ setModels()

◆ setScrollCurrentToCenter()

void Digikam::ItemViewCategorized::setScrollCurrentToCenter ( bool  enabled)
inherited

◆ setScrollStepGranularity()

void Digikam::ItemViewCategorized::setScrollStepGranularity ( int  factor)
inherited

Determine a step size for scrolling: The larger this number, the smaller and more precise is the scrolling. Default is 10.

Referenced by Digikam::ImportThumbnailBar::ImportThumbnailBar(), Digikam::ItemThumbnailBar::ItemThumbnailBar(), and ShowFoto::ShowfotoThumbnailBar::ShowfotoThumbnailBar().

◆ setSelectedIndexes()

void Digikam::ItemViewCategorized::setSelectedIndexes ( const QList< QModelIndex > &  indexes)
inherited

◆ setSelectedItemInfos

void Digikam::ItemCategorizedView::setSelectedItemInfos ( const QList< ItemInfo > &  infos)
slotinherited

Set selected items.

◆ setSelectedUrls

void Digikam::ItemCategorizedView::setSelectedUrls ( const QList< QUrl > &  urlList)
slotinherited

Set selected items identified by their file urls.

◆ setSelection()

◆ setSpacing()

void Digikam::ItemViewCategorized::setSpacing ( int  spacing)
inherited

◆ setThumbnailSize() [1/2]

void Digikam::DigikamItemView::setThumbnailSize ( const ThumbnailSize size)
overridevirtual

◆ setThumbnailSize [2/2]

void Digikam::ItemCategorizedView::setThumbnailSize ( int  size)
slotinherited

◆ setToolTip()

◆ setToolTipEnabled()

◆ setUsePointingHandCursor()

void Digikam::ItemViewCategorized::setUsePointingHandCursor ( bool  useCursor)
inherited

◆ showContextMenu()

void Digikam::DigikamItemView::showContextMenu ( QContextMenuEvent *  event)
overrideprotectedvirtual

Reimplemented from Digikam::ItemViewCategorized.

References signalShowContextMenu().

◆ showContextMenuOnIndex()

void Digikam::ItemCategorizedView::showContextMenuOnIndex ( QContextMenuEvent *  event,
const QModelIndex &  index 
)
overrideprotectedvirtualinherited

◆ showContextMenuOnInfo()

void Digikam::DigikamItemView::showContextMenuOnInfo ( QContextMenuEvent *  event,
const ItemInfo info 
)
overrideprotectedvirtual

◆ showGroupContextMenu

void Digikam::DigikamItemView::showGroupContextMenu ( const QModelIndex &  index,
QContextMenuEvent *  event 
)
protectedslot

◆ showIndexNotification

void Digikam::ItemViewCategorized::showIndexNotification ( const QModelIndex &  index,
const QString &  message 
)
slotinherited

◆ showToolTip()

bool Digikam::ItemViewCategorized::showToolTip ( const QModelIndex &  index,
QStyleOptionViewItem &  option,
QHelpEvent *  e = nullptr 
)
protectedvirtualinherited

Provides default behavior, can reimplement in a subclass. Returns true if a tooltip was shown. The help event is optional.

Referenced by Digikam::ItemViewCategorized::viewportEvent().

◆ signalSeparationModeChanged

void Digikam::DigikamItemView::signalSeparationModeChanged ( int  category)
signal

Referenced by setFaceMode().

◆ signalShowContextMenu

void Digikam::DigikamItemView::signalShowContextMenu ( QContextMenuEvent *  event,
const QList< QAction * > &  actions = QList< QAction * >() 
)
signal

Referenced by showContextMenu().

◆ signalShowContextMenuOnInfo

void Digikam::DigikamItemView::signalShowContextMenuOnInfo ( QContextMenuEvent *  event,
const ItemInfo info,
const QList< QAction * > &  actions,
ItemFilterModel filterModel 
)
signal

Referenced by showContextMenuOnInfo().

◆ signalShowGroupContextMenu

void Digikam::DigikamItemView::signalShowGroupContextMenu ( QContextMenuEvent *  event,
const QList< ItemInfo > &  selectedInfos,
ItemFilterModel filterModel 
)
signal

Referenced by showGroupContextMenu().

◆ slotActivated

void Digikam::ItemViewCategorized::slotActivated ( const QModelIndex &  index)
protectedslotinherited

◆ slotClicked

void Digikam::ItemViewCategorized::slotClicked ( const QModelIndex &  index)
protectedslotinherited

◆ slotCurrentUrlTimer

void Digikam::ItemCategorizedView::slotCurrentUrlTimer ( )
protectedslotinherited

◆ slotEntered

void Digikam::ItemViewCategorized::slotEntered ( const QModelIndex &  index)
protectedslotinherited

◆ slotItemInfosAdded

void Digikam::ItemCategorizedView::slotItemInfosAdded ( )
protectedslotinherited

◆ slotLayoutChanged

◆ slotSetupChanged()

◆ slotThemeChanged

void Digikam::ItemViewCategorized::slotThemeChanged ( )
protectedvirtualslotinherited

◆ startDrag() [1/2]

void Digikam::DragDropViewImplementation::startDrag ( Qt::DropActions  supportedActions)
protectedinherited

◆ startDrag() [2/2]

void Digikam::DCategorizedView::startDrag ( Qt::DropActions  supportedActions)
overrideprotectedinherited

◆ thumbnailSize()

ThumbnailSize Digikam::ItemCategorizedView::thumbnailSize ( ) const
inherited

◆ toFirstIndex()

void Digikam::ItemViewCategorized::toFirstIndex ( )
inherited

Selects the index as current and scrolls to it

References Digikam::ItemViewCategorized::moveCursor().

◆ toIndex() [1/2]

◆ toIndex() [2/2]

void Digikam::ItemCategorizedView::toIndex ( const QUrl &  url)
inherited

Selects the index as current and scrolls to it.

References Digikam::ItemViewCategorized::toIndex().

◆ toLastIndex()

void Digikam::ItemViewCategorized::toLastIndex ( )
inherited

◆ toNextIndex()

void Digikam::ItemViewCategorized::toNextIndex ( )
inherited

◆ toPreviousIndex()

void Digikam::ItemViewCategorized::toPreviousIndex ( )
inherited

◆ unknownFaces

◆ updateDelegateSizes()

◆ updateGeometries()

void Digikam::ItemCategorizedView::updateGeometries ( )
overrideprotectedinherited

◆ userInteraction()

◆ utilities()

ItemViewUtilities * Digikam::DigikamItemView::utilities ( ) const

◆ viewportClicked

void Digikam::ItemViewCategorized::viewportClicked ( const QMouseEvent *  e)
signalinherited

While clicked() is emitted with a valid index, this corresponds to clicking on empty space

Referenced by Digikam::ItemViewCategorized::mousePressEvent().

◆ viewportEvent()

bool Digikam::ItemViewCategorized::viewportEvent ( QEvent *  event)
overrideprotectedinherited

◆ visualRect()

◆ wheelEvent()

void Digikam::ItemViewCategorized::wheelEvent ( QWheelEvent *  event)
overrideprotectedinherited

◆ zoomInStep

void Digikam::ItemViewCategorized::zoomInStep ( )
signalinherited

◆ zoomOutStep

void Digikam::ItemViewCategorized::zoomOutStep ( )
signalinherited

The documentation for this class was generated from the following files: