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

Public Slots

void assignRating (const QList< QModelIndex > &index, int rating)
 
void copy () override
 
void cut () override
 
void hideIndexNotification ()
 
void hintAt (const CamItemInfo &info)
 
void paste () override
 
void setCurrentInfo (const CamItemInfo &info)
 
void setCurrentUrl (const QUrl &url)
 
void setCurrentWhenAvailable (qlonglong camItemId)
 
void setSelectedCamItemInfos (const QList< CamItemInfo > &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 camItemInfoActivated (const CamItemInfo &info)
 
void clicked (const QMouseEvent *e, const QModelIndex &index)
 
void currentChanged (const CamItemInfo &info)
 
void deselected (const QList< CamItemInfo > &nowDeselectedInfos)
 
void entered (const QMouseEvent *e, const QModelIndex &index)
 
void keyPressed (QKeyEvent *e)
 
void modelChanged ()
 
void selected (const QList< CamItemInfo > &newSelectedInfos)
 
void selectionChanged ()
 
void selectionCleared ()
 
void viewportClicked (const QMouseEvent *e)
 
void zoomInStep ()
 
void zoomOutStep ()
 

Public Member Functions

void addOverlay (ItemDelegateOverlay *overlay, ImportDelegate *delegate=nullptr)
 
void addSelectionOverlay (ImportDelegate *delegate=nullptr)
 
void awayFromSelection ()
 
QList< CamItemInfocamItemInfos () const
 
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
 
CamItemInfo currentInfo () const
 
QUrl currentUrl () const
 
ImportDelegatedelegate () const
 
QModelIndex firstIndex () const
 
QItemSelectionModel * getSelectionModel () const
 
ImportFilterModelimportFilterModel () const
 
ImportItemModelimportItemModel () const
 
ImportSortFilterModelimportSortFilterModel () const
 
 ImportThumbnailBar (QWidget *const parent=nullptr)
 
ImportThumbnailModelimportThumbnailModel () const
 
QModelIndex indexAt (const QPoint &point) const override
 
void installOverlays ()
 
void invertSelection ()
 
bool isToolTipEnabled () const
 
QModelIndex lastIndex () const
 
QModelIndex nextIndex (const QModelIndex &index) const
 
CamItemInfo nextInfo (const CamItemInfo &info)
 
CamItemInfo nextInOrder (const CamItemInfo &startingPoint, int nth)
 
int numberOfSelectedIndexes () const
 
QModelIndex previousIndex (const QModelIndex &index) const
 
CamItemInfo previousInfo (const CamItemInfo &info)
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) override
 
void scrollToRelaxed (const QModelIndex &index, ScrollHint hint=EnsureVisible)
 
QList< CamItemInfoselectedCamItemInfos () const
 
QList< CamItemInfoselectedCamItemInfosCurrentFirst () const
 
QList< QUrl > selectedUrls () 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 (ImportItemModel *model, ImportSortFilterModel *filterModel)
 
void setModelsFiltered (ImportItemModel *model, ImportSortFilterModel *filterModel)
 
void setScrollBarPolicy (Qt::ScrollBarPolicy policy)
 
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 ()
 
QList< QUrl > urls () const
 
QRect visualRect (const QModelIndex &index) const override
 
 ~ImportThumbnailBar () override
 

Protected Slots

void layoutAboutToBeChanged ()
 
void layoutWasChanged ()
 
virtual void rowsInsertedArtifficial (const QModelIndex &parent, int start, int end)
 
void slotActivated (const QModelIndex &index)
 
void slotCamItemInfosAdded ()
 
void slotClicked (const QModelIndex &index)
 
void slotEntered (const QModelIndex &index)
 
virtual void slotLayoutChanged ()
 
virtual void slotThemeChanged ()
 

Protected Member Functions

virtual void activated (const CamItemInfo &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
 reimplemented from parent class More...
 
void indexActivated (const QModelIndex &index, Qt::KeyboardModifiers modifiers) override
 
QModelIndex indexForCategoryAt (const QPoint &pos) const
 
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 *e) 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 (ImportDelegate *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 CamItemInfo &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

◆ ImportThumbnailBar()

◆ ~ImportThumbnailBar()

Digikam::ImportThumbnailBar::~ImportThumbnailBar ( )
override

Member Function Documentation

◆ activated()

void Digikam::ImportCategorizedView::activated ( const CamItemInfo info,
Qt::KeyboardModifiers  modifiers 
)
protectedvirtualinherited

Reimplement these in a subclass.

Reimplemented in Digikam::ImportIconView.

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

◆ addOverlay()

void Digikam::ImportCategorizedView::addOverlay ( ItemDelegateOverlay overlay,
ImportDelegate delegate = nullptr 
)
inherited

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.

References Digikam::ImportCategorizedView::delegate(), Digikam::ItemDelegateOverlayContainer::installOverlay(), Digikam::ItemDelegateOverlay::setActive(), and Digikam::ItemDelegateOverlay::setView().

Referenced by Digikam::ImportCategorizedView::addSelectionOverlay(), Digikam::ImportIconView::ImportIconView(), and installOverlays().

◆ addSelectionOverlay()

void Digikam::ImportCategorizedView::addSelectionOverlay ( ImportDelegate delegate = nullptr)
inherited

◆ assignRating

◆ asView()

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

◆ awayFromSelection()

◆ camItemInfoActivated

void Digikam::ImportCategorizedView::camItemInfoActivated ( const CamItemInfo info)
signalinherited

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

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

◆ camItemInfos()

QList< CamItemInfo > Digikam::ImportCategorizedView::camItemInfos ( ) const
inherited

◆ 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

◆ currentChanged [1/2]

void Digikam::ImportCategorizedView::currentChanged ( const CamItemInfo info)
signalinherited

◆ currentChanged() [2/2]

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

◆ currentInfo()

CamItemInfo Digikam::ImportCategorizedView::currentInfo ( ) const
inherited

◆ currentUrl()

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

◆ cut

void Digikam::ItemViewCategorized::cut ( )
inlineoverrideslotinherited

◆ decodeIsCutSelection()

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

◆ delegate()

◆ deselected

void Digikam::ImportCategorizedView::deselected ( const QList< CamItemInfo > &  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::ImportCategorizedView::selectionChanged().

◆ dragDropHandler()

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

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

Implements Digikam::DragDropViewImplementation.

◆ 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::ImportThumbnailBar::event ( QEvent *  e)
overrideprotected

References setFlow().

◆ filterModel()

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

◆ firstIndex()

QModelIndex Digikam::ImportThumbnailBar::firstIndex ( ) const

◆ getSelectionModel()

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

◆ hideIndexNotification

◆ hintAt

void Digikam::ImportCategorizedView::hintAt ( const CamItemInfo info)
slotinherited

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

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

◆ importFilterModel()

ImportFilterModel * Digikam::ImportCategorizedView::importFilterModel ( ) const
inherited

◆ importItemModel()

◆ importSortFilterModel()

ImportSortFilterModel * Digikam::ImportCategorizedView::importSortFilterModel ( ) const
inherited

Referenced by assignRating().

◆ importThumbnailModel()

ImportThumbnailModel * Digikam::ImportCategorizedView::importThumbnailModel ( ) const
inherited

Returns 0 if the ImportItemModel is not an ImportThumbnailModel

◆ indexActivated()

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

◆ installOverlays()

void Digikam::ImportThumbnailBar::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::ImportThumbnailBar::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::ImportCategorizedView::modelChanged ( )
signalinherited

Emitted when a new model is set

Referenced by Digikam::ImportCategorizedView::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::ImportThumbnailBar::nextIndex ( const QModelIndex &  index) const

◆ nextIndexHint()

QModelIndex Digikam::ImportCategorizedView::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::ItemViewCategorized::nextIndexHint().

◆ nextInfo()

CamItemInfo Digikam::ImportCategorizedView::nextInfo ( const CamItemInfo info)
inlineinherited

◆ nextInOrder()

CamItemInfo Digikam::ImportCategorizedView::nextInOrder ( const CamItemInfo 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

◆ numberOfSelectedIndexes()

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

◆ paintEvent()

void Digikam::ImportCategorizedView::paintEvent ( QPaintEvent *  e)
overrideprotectedinherited

◆ 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::ImportThumbnailBar::previousIndex ( const QModelIndex &  index) const

◆ previousInfo()

CamItemInfo Digikam::ImportCategorizedView::previousInfo ( const CamItemInfo 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::ImportCategorizedView::selected ( const QList< CamItemInfo > &  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::ImportCategorizedView::selectionChanged().

◆ selectedCamItemInfos()

◆ selectedCamItemInfosCurrentFirst()

QList< CamItemInfo > Digikam::ImportCategorizedView::selectedCamItemInfosCurrentFirst ( ) const
inherited

◆ selectedUrls()

◆ selectionChanged [1/2]

void Digikam::ItemViewCategorized::selectionChanged ( )
signalinherited

◆ selectionChanged() [2/2]

void Digikam::ImportCategorizedView::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::ImportCategorizedView::setCurrentInfo ( const CamItemInfo info)
slotinherited

Set as current item the item identified by the CamItemInfo

◆ setCurrentUrl

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

Set as current item the item identified by its file url

◆ setCurrentWhenAvailable

void Digikam::ImportCategorizedView::setCurrentWhenAvailable ( qlonglong  camItemId)
slotinherited

Scroll the view to the given item when it becomes available

◆ 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::ImportThumbnailBar::setModelsFiltered ( ImportItemModel model,
ImportSortFilterModel filterModel 
)

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

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

◆ setScrollBarPolicy()

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

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

Referenced by ImportThumbnailBar(), 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 ImportThumbnailBar(), Digikam::ItemThumbnailBar::ItemThumbnailBar(), and ShowFoto::ShowfotoThumbnailBar::ShowfotoThumbnailBar().

◆ setSelectedCamItemInfos

void Digikam::ImportCategorizedView::setSelectedCamItemInfos ( const QList< CamItemInfo > &  infos)
slotinherited

Set selected items

◆ setSelectedIndexes()

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

◆ setSelectedUrls

void Digikam::ImportCategorizedView::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::ImportCategorizedView::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 ImportThumbnailBar(), Digikam::ItemThumbnailBar::ItemThumbnailBar(), and ShowFoto::ShowfotoThumbnailBar::ShowfotoThumbnailBar().

◆ showContextMenu()

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

◆ showContextMenuOnIndex()

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

Reimplement these in a subclass.

Reimplemented from Digikam::ItemViewCategorized.

References Digikam::ImportCategorizedView::showContextMenuOnInfo().

◆ showContextMenuOnInfo()

void Digikam::ImportCategorizedView::showContextMenuOnInfo ( QContextMenuEvent *  event,
const CamItemInfo 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

◆ slotCamItemInfosAdded

void Digikam::ImportCategorizedView::slotCamItemInfosAdded ( )
protectedslotinherited

◆ slotClicked

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

◆ slotDockLocationChanged

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

◆ slotEntered

void Digikam::ItemViewCategorized::slotEntered ( const QModelIndex &  index)
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::ImportCategorizedView::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::ImportCategorizedView::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::ImportCategorizedView::updateGeometries ( )
overrideprotectedinherited

◆ urls()

QList< QUrl > Digikam::ImportCategorizedView::urls ( ) const
inherited

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