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

Public Slots

void assignRating (const QList< QModelIndex > &index, int rating)
 
void copy () override
 
void cut () override
 
void hideIndexNotification ()
 
void hintAt (const ItemInfo &info)
 
void openAlbum (const QList< Album * > &album)
 
void paste () override
 
void setCurrentInfo (const ItemInfo &info)
 
void setCurrentUrl (const QUrl &url)
 
void setCurrentUrlWhenAvailable (const QUrl &url)
 
void setCurrentWhenAvailable (qlonglong imageId)
 
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 slotDockLocationChanged (Qt::DockWidgetArea area)
 

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 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 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
 
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
 
QModelIndex firstIndex () 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 installOverlays ()
 
void invertSelection ()
 
bool isToolTipEnabled () const
 
 ItemThumbnailBar (QWidget *const parent=nullptr)
 
QModelIndex lastIndex () const
 
QModelIndex nextIndex (const QModelIndex &index) const
 
ItemInfo nextInfo (const ItemInfo &info)
 
ItemInfo nextInOrder (const ItemInfo &startingPoint, int nth)
 
int numberOfSelectedIndexes () const
 
QModelIndex previousIndex (const QModelIndex &index) const
 
ItemInfo previousInfo (const ItemInfo &info)
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) override
 
void scrollToRelaxed (const QModelIndex &index, ScrollHint hint=EnsureVisible)
 
ItemInfoList selectedItemInfos () const
 
ItemInfoList selectedItemInfosCurrentFirst () const
 
void setCategoryDrawer (DCategoryDrawer *categoryDrawer)
 
void setDrawDraggedItems (bool drawDraggedItems)
 
void setFlow (QListView::Flow newFlow)
 
void setGridSize (const QSize &size)
 
void setModel (QAbstractItemModel *model) override
 
void setModels (ItemModel *model, ImageSortFilterModel *filterModel)
 
void setModelsFiltered (ItemModel *model, ImageSortFilterModel *filterModel)
 
void setScrollBarPolicy (Qt::ScrollBarPolicy policy)
 Sets the policy always for the one scroll bar which is relevant, depending on orientation. More...
 
void setScrollCurrentToCenter (bool enabled)
 
void setScrollStepGranularity (int factor)
 
void setSelectedIndexes (const QList< QModelIndex > &indexes)
 
void setSpacing (int spacing)
 
virtual void setThumbnailSize (const ThumbnailSize &size)
 
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 ()
 
QRect visualRect (const QModelIndex &index) const override
 
 ~ItemThumbnailBar () override
 

Protected Slots

void layoutAboutToBeChanged ()
 
void layoutWasChanged ()
 
virtual void rowsInsertedArtifficial (const QModelIndex &parent, int start, int end)
 
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

virtual void activated (const ItemInfo &info, Qt::KeyboardModifiers modifiers)
 Reimplement these in a subclass. More...
 
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)
 
bool event (QEvent *) override
 
QSortFilterProxyModel * filterModel () const override
 
ItemInfo imageInfo (const QModelIndex &index) const
 
ItemInfoList imageInfos (const QList< QModelIndex > &indexes) 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)
 
virtual void showContextMenu (QContextMenuEvent *event)
 
void showContextMenuOnIndex (QContextMenuEvent *event, const QModelIndex &index) override
 Reimplement these in a subclass. More...
 
virtual void showContextMenuOnInfo (QContextMenuEvent *event, const ItemInfo &info)
 
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

◆ ItemThumbnailBar()

◆ ~ItemThumbnailBar()

Digikam::ItemThumbnailBar::~ItemThumbnailBar ( )
override

Member Function Documentation

◆ activated()

void Digikam::ItemCategorizedView::activated ( const ItemInfo info,
Qt::KeyboardModifiers  modifiers 
)
protectedvirtualinherited

Reimplement these in a subclass.

Reimplemented in Digikam::DigikamItemView.

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

◆ addOverlay()

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

◆ addSelectionOverlay()

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

◆ albumAt()

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

◆ allItemInfos()

◆ allUrls()

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

◆ assignRating

void Digikam::ItemThumbnailBar::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().

◆ 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()

◆ 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 Digikam::DigikamItemView::DigikamItemView().

◆ 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

◆ event()

bool Digikam::ItemThumbnailBar::event ( QEvent *  e)
overrideprotected

References setFlow().

◆ filterModel()

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

◆ firstIndex()

QModelIndex Digikam::ItemThumbnailBar::firstIndex ( ) const

◆ getSelectionModel()

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

◆ 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().

◆ 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()

◆ imageModel()

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

◆ imageSortFilterModel()

◆ imageThumbnailModel()

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

◆ 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()

◆ installOverlays()

void Digikam::ItemThumbnailBar::installOverlays ( )

◆ 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

◆ lastIndex()

QModelIndex Digikam::ItemThumbnailBar::lastIndex ( ) const

◆ 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

◆ nextIndex()

QModelIndex Digikam::ItemThumbnailBar::nextIndex ( const QModelIndex &  index) const

◆ 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 Digikam::DigikamItemView::rename().

◆ numberOfSelectedIndexes()

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

◆ openAlbum

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

◆ 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.

◆ previousIndex()

QModelIndex Digikam::ItemThumbnailBar::previousIndex ( const QModelIndex &  index) const

◆ previousInfo()

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

◆ removeOverlay()

◆ reset()

void Digikam::ItemViewCategorized::reset ( )
overrideprotectedinherited

◆ resizeEvent()

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

◆ 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

◆ scrollTo()

◆ 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()

◆ selectedItemInfosCurrentFirst()

◆ 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 Digikam::DigikamItemView::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 Digikam::DigikamItemView::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().

◆ setFlow()

◆ setGridSize()

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

◆ setItemDelegate() [1/2]

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

◆ setItemDelegate() [2/2]

◆ setModel()

◆ setModels()

◆ setModelsFiltered()

void Digikam::ItemThumbnailBar::setModelsFiltered ( ItemModel model,
ImageSortFilterModel filterModel 
)

This installs a duplicate filter model, if the ItemModel may contain duplicates. Otherwise, just use setModels().

References Digikam::ItemCategorizedView::filterModel(), and Digikam::ItemCategorizedView::setModels().

◆ setScrollBarPolicy()

void Digikam::ItemThumbnailBar::setScrollBarPolicy ( Qt::ScrollBarPolicy  policy)

Sets the policy always for the one scroll bar which is relevant, depending on orientation.

Referenced by ItemThumbnailBar(), and setFlow().

◆ 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(), 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]

◆ setThumbnailSize [2/2]

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

◆ setToolTip()

◆ setToolTipEnabled()

◆ setUsePointingHandCursor()

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

Set if the PointingHand Cursor should be shown over the activation area

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

◆ showContextMenu()

void Digikam::ItemViewCategorized::showContextMenu ( QContextMenuEvent *  event)
protectedvirtualinherited

◆ showContextMenuOnIndex()

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

◆ showContextMenuOnInfo()

void Digikam::ItemCategorizedView::showContextMenuOnInfo ( QContextMenuEvent *  event,
const ItemInfo info 
)
protectedvirtualinherited

◆ 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().

◆ slotActivated

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

◆ slotClicked

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

◆ slotCurrentUrlTimer

void Digikam::ItemCategorizedView::slotCurrentUrlTimer ( )
protectedslotinherited

◆ slotDockLocationChanged

void Digikam::ItemThumbnailBar::slotDockLocationChanged ( Qt::DockWidgetArea  area)
slot

◆ 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

◆ updateDelegateSizes()

◆ updateGeometries()

void Digikam::ItemCategorizedView::updateGeometries ( )
overrideprotectedinherited

◆ userInteraction()

◆ 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: