digiKam
ShowFoto::ShowfotoThumbnailBar Class Referenceabstract
+ Inheritance diagram for ShowFoto::ShowfotoThumbnailBar:

Public Slots

void copy () override
 
void cut () override
 
void hideIndexNotification ()
 
void hintAt (const ShowfotoItemInfo &info)
 
void paste () override
 
void setCurrentInfo (const ShowfotoItemInfo &info)
 
void setCurrentUrl (const QUrl &url)
 
void setCurrentWhenAvailable (qlonglong ShowfotoItemId)
 
void setSelectedShowfotoItemInfos (const QList< ShowfotoItemInfo > &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 ShowfotoItemInfo &info)
 
void deselected (const QList< ShowfotoItemInfo > &nowDeselectedInfos)
 
void entered (const QMouseEvent *e, const QModelIndex &index)
 
void keyPressed (QKeyEvent *e)
 
void modelChanged ()
 
void selected (const QList< ShowfotoItemInfo > &newSelectedInfos)
 
void selectionChanged ()
 
void selectionCleared ()
 
void showfotoItemInfoActivated (const ShowfotoItemInfo &info)
 
void viewportClicked (const QMouseEvent *e)
 
void zoomInStep ()
 
void zoomOutStep ()
 

Public Member Functions

void addOverlay (ItemDelegateOverlay *overlay, ShowfotoDelegate *delegate=nullptr)
 
void awayFromSelection ()
 
virtual QModelIndexList categorizedIndexesIn (const QRect &rect) const
 
virtual QModelIndex categoryAt (const QPoint &point) const
 
DCategoryDrawer * categoryDrawer () const
 
virtual QItemSelectionRange categoryRange (const QModelIndex &index) const
 
virtual QRect categoryVisualRect (const QModelIndex &index) const
 
ShowfotoItemInfo currentInfo () const
 
QUrl currentUrl () const
 
ShowfotoDelegatedelegate () const
 
ShowfotoItemInfo findItemByUrl (const QUrl &url)
 
QModelIndex firstIndex () const
 
QItemSelectionModel * getSelectionModel () const
 
QModelIndex indexAt (const QPoint &point) const override
 
void installOverlays ()
 
void invertSelection ()
 
bool isToolTipEnabled () const
 
QModelIndex lastIndex () const
 
QModelIndex nextIndex (const QModelIndex &index) const
 
ShowfotoItemInfo nextInfo (const ShowfotoItemInfo &info)
 
ShowfotoItemInfo nextInOrder (const ShowfotoItemInfo &startingPoint, int nth)
 
int numberOfSelectedIndexes () const
 
QModelIndex previousIndex (const QModelIndex &index) const
 
ShowfotoItemInfo previousInfo (const ShowfotoItemInfo &info)
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) override
 
void scrollToRelaxed (const QModelIndex &index, ScrollHint hint=EnsureVisible)
 
QList< ShowfotoItemInfoselectedShowfotoItemInfos () const
 
QList< ShowfotoItemInfoselectedShowfotoItemInfosCurrentFirst () 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 (ShowfotoItemModel *model, ShowfotoSortFilterModel *filterModel)
 
void setModelsFiltered (ShowfotoItemModel *model, ShowfotoSortFilterModel *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)
 
ShowfotoFilterModelshowfotoFilterModel () const
 Returns any ShowfotoFilterModel in chain. May not be sourceModel() More...
 
QList< ShowfotoItemInfoshowfotoItemInfos () const
 
ShowfotoItemModelshowfotoItemModel () const
 
ShowfotoSortFilterModelshowfotoSortFilterModel () const
 
 ShowfotoThumbnailBar (QWidget *const parent=nullptr)
 
ShowfotoThumbnailModelshowfotoThumbnailModel () const
 Returns 0 if the ShowfotoItemModel is not an ShowfotoThumbnailModel. More...
 
int thumbnailIndexForUrl (const QUrl &url) const
 
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
 
 ~ShowfotoThumbnailBar () 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 slotEntered (const QModelIndex &index)
 
virtual void slotLayoutChanged ()
 
virtual void slotThemeChanged ()
 

Protected Member Functions

virtual void activated (const ShowfotoItemInfo &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 (ShowfotoDelegate *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 ShowfotoItemInfo &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

◆ ShowfotoThumbnailBar()

◆ ~ShowfotoThumbnailBar()

ShowFoto::ShowfotoThumbnailBar::~ShowfotoThumbnailBar ( )
override

Member Function Documentation

◆ activated()

void ShowFoto::ShowfotoCategorizedView::activated ( const ShowfotoItemInfo info,
Qt::KeyboardModifiers  modifiers 
)
protectedvirtualinherited

Reimplement these in a subclass.

Referenced by ShowFoto::ShowfotoCategorizedView::indexActivated().

◆ addOverlay()

void ShowFoto::ShowfotoCategorizedView::addOverlay ( ItemDelegateOverlay overlay,
ShowfotoDelegate 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 ShowFoto::ShowfotoCategorizedView::delegate(), Digikam::ItemDelegateOverlayContainer::installOverlay(), Digikam::ItemDelegateOverlay::setActive(), and Digikam::ItemDelegateOverlay::setView().

Referenced by installOverlays().

◆ 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

◆ currentChanged() [1/2]

void ShowFoto::ShowfotoCategorizedView::currentChanged ( const QModelIndex &  index,
const QModelIndex &  previous 
)
overrideprotectedinherited

◆ currentChanged [2/2]

void ShowFoto::ShowfotoCategorizedView::currentChanged ( const ShowfotoItemInfo info)
signalinherited

◆ currentInfo()

ShowfotoItemInfo ShowFoto::ShowfotoCategorizedView::currentInfo ( ) const
inherited

◆ currentUrl()

QUrl ShowFoto::ShowfotoCategorizedView::currentUrl ( ) const
inherited

◆ cut

void Digikam::ItemViewCategorized::cut ( )
inlineoverrideslotinherited

◆ decodeIsCutSelection()

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

◆ delegate()

◆ deselected

void ShowFoto::ShowfotoCategorizedView::deselected ( const QList< ShowfotoItemInfo > &  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 ShowFoto::ShowfotoCategorizedView::selectionChanged().

◆ dragDropHandler()

AbstractItemDragDropHandler * ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoThumbnailBar::event ( QEvent *  e)
overrideprotected

References setFlow().

◆ filterModel()

QSortFilterProxyModel * ShowFoto::ShowfotoCategorizedView::filterModel ( ) const
overrideprotectedvirtualinherited

reimplemented from parent class

Implements Digikam::ItemViewCategorized.

Referenced by ShowFoto::ShowfotoCategorizedView::setModels().

◆ findItemByUrl()

ShowfotoItemInfo ShowFoto::ShowfotoThumbnailBar::findItemByUrl ( const QUrl &  url)

◆ firstIndex()

QModelIndex ShowFoto::ShowfotoThumbnailBar::firstIndex ( ) const

◆ getSelectionModel()

QItemSelectionModel * ShowFoto::ShowfotoCategorizedView::getSelectionModel ( ) const
inherited

◆ hideIndexNotification

◆ hintAt

void ShowFoto::ShowfotoCategorizedView::hintAt ( const ShowfotoItemInfo info)
slotinherited

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

References ShowFoto::ShowfotoItemInfo::isNull(), and Digikam::ItemViewCategorized::scrollTo().

◆ indexActivated()

void ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoThumbnailBar::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 ShowFoto::ShowfotoThumbnailBar::lastIndex ( ) const

◆ layoutAboutToBeChanged

◆ layoutWasChanged

◆ leaveEvent()

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

◆ mapIndexForDragDrop()

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

Note: pure virtual dragDropHandler() still open from DragDropViewImplementation

cut(), copy(), paste(), dragEnterEvent(), dragMoveEvent(), dropEvent(), startDrag() are implemented by DragDropViewImplementation

Implements Digikam::DragDropViewImplementation.

References Digikam::ItemViewCategorized::filterModel().

◆ modelChanged

void ShowFoto::ShowfotoCategorizedView::modelChanged ( )
signalinherited

Emitted when a new model is set.

Referenced by ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoThumbnailBar::nextIndex ( const QModelIndex &  index) const

◆ nextIndexHint()

QModelIndex ShowFoto::ShowfotoCategorizedView::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.

◆ nextInfo()

ShowfotoItemInfo ShowFoto::ShowfotoCategorizedView::nextInfo ( const ShowfotoItemInfo info)
inherited

◆ nextInOrder()

ShowfotoItemInfo ShowFoto::ShowfotoCategorizedView::nextInOrder ( const ShowfotoItemInfo 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

Referenced by ShowFoto::ShowfotoCategorizedView::nextInfo(), and ShowFoto::ShowfotoCategorizedView::previousInfo().

◆ numberOfSelectedIndexes()

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

◆ paintEvent()

void ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoThumbnailBar::previousIndex ( const QModelIndex &  index) const

◆ previousInfo()

ShowfotoItemInfo ShowFoto::ShowfotoCategorizedView::previousInfo ( const ShowfotoItemInfo info)
inherited

◆ 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 ShowFoto::ShowfotoCategorizedView::selected ( const QList< ShowfotoItemInfo > &  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 ShowFoto::ShowfotoCategorizedView::selectionChanged().

◆ selectedShowfotoItemInfos()

QList< ShowfotoItemInfo > ShowFoto::ShowfotoCategorizedView::selectedShowfotoItemInfos ( ) const
inherited

◆ selectedShowfotoItemInfosCurrentFirst()

QList< ShowfotoItemInfo > ShowFoto::ShowfotoCategorizedView::selectedShowfotoItemInfosCurrentFirst ( ) const
inherited

◆ selectedUrls()

QList< QUrl > ShowFoto::ShowfotoCategorizedView::selectedUrls ( ) const
inherited

◆ selectionChanged [1/2]

void Digikam::ItemViewCategorized::selectionChanged ( )
signalinherited

◆ selectionChanged() [2/2]

void ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoCategorizedView::setCurrentInfo ( const ShowfotoItemInfo info)
slotinherited

Set as current item the item identified by the ShowfotoItemInfo

◆ setCurrentUrl

void ShowFoto::ShowfotoCategorizedView::setCurrentUrl ( const QUrl &  url)
slotinherited

Set as current item the item identified by its file url

◆ setCurrentWhenAvailable

void ShowFoto::ShowfotoCategorizedView::setCurrentWhenAvailable ( qlonglong  ShowfotoItemId)
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 ShowFoto::ShowfotoThumbnailBar::setModelsFiltered ( ShowfotoItemModel model,
ShowfotoSortFilterModel filterModel 
)

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

◆ setScrollBarPolicy()

void ShowFoto::ShowfotoThumbnailBar::setScrollBarPolicy ( Qt::ScrollBarPolicy  policy)

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

Referenced by setFlow(), and ShowfotoThumbnailBar().

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

◆ setSelectedIndexes()

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

◆ setSelectedShowfotoItemInfos

void ShowFoto::ShowfotoCategorizedView::setSelectedShowfotoItemInfos ( const QList< ShowfotoItemInfo > &  infos)
slotinherited

Set selected items

◆ setSelectedUrls

void ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoCategorizedView::setThumbnailSize ( const ThumbnailSize size)
virtualinherited

◆ setThumbnailSize [2/2]

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

◆ showContextMenu()

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

◆ showContextMenuOnIndex()

void ShowFoto::ShowfotoCategorizedView::showContextMenuOnIndex ( QContextMenuEvent *  event,
const QModelIndex &  index 
)
overrideprotectedvirtualinherited

Reimplement these in a subclass.

Reimplemented from Digikam::ItemViewCategorized.

References ShowFoto::ShowfotoCategorizedView::showContextMenuOnInfo().

◆ showContextMenuOnInfo()

void ShowFoto::ShowfotoCategorizedView::showContextMenuOnInfo ( QContextMenuEvent *  event,
const ShowfotoItemInfo info 
)
protectedvirtualinherited

◆ showfotoFilterModel()

ShowfotoFilterModel * ShowFoto::ShowfotoCategorizedView::showfotoFilterModel ( ) const
inherited

Returns any ShowfotoFilterModel in chain. May not be sourceModel()

Referenced by firstIndex(), lastIndex(), nextIndex(), and previousIndex().

◆ showfotoItemInfoActivated

void ShowFoto::ShowfotoCategorizedView::showfotoItemInfoActivated ( const ShowfotoItemInfo info)
signalinherited

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

Referenced by ShowFoto::ShowfotoCategorizedView::indexActivated().

◆ showfotoItemInfos()

QList< ShowfotoItemInfo > ShowFoto::ShowfotoCategorizedView::showfotoItemInfos ( ) const
inherited

◆ showfotoItemModel()

ShowfotoItemModel * ShowFoto::ShowfotoCategorizedView::showfotoItemModel ( ) const
inherited

◆ showfotoSortFilterModel()

ShowfotoSortFilterModel * ShowFoto::ShowfotoCategorizedView::showfotoSortFilterModel ( ) const
inherited

◆ showfotoThumbnailModel()

ShowfotoThumbnailModel * ShowFoto::ShowfotoCategorizedView::showfotoThumbnailModel ( ) const
inherited

Returns 0 if the ShowfotoItemModel is not an ShowfotoThumbnailModel.

◆ 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

◆ slotDockLocationChanged

void ShowFoto::ShowfotoThumbnailBar::slotDockLocationChanged ( Qt::DockWidgetArea  area)
slot

◆ slotEntered

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

◆ slotLayoutChanged

◆ slotSetupChanged()

void ShowFoto::ShowfotoThumbnailBar::slotSetupChanged ( )
overrideprotectedvirtual

◆ 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

◆ thumbnailIndexForUrl()

int ShowFoto::ShowfotoThumbnailBar::thumbnailIndexForUrl ( const QUrl &  url) const

◆ thumbnailSize()

ThumbnailSize ShowFoto::ShowfotoCategorizedView::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 ShowFoto::ShowfotoCategorizedView::toIndex ( const QUrl &  url)
inherited

Selects the index as current and scrolls to it

◆ toLastIndex()

void Digikam::ItemViewCategorized::toLastIndex ( )
inherited

◆ toNextIndex()

void Digikam::ItemViewCategorized::toNextIndex ( )
inherited

◆ toPreviousIndex()

void Digikam::ItemViewCategorized::toPreviousIndex ( )
inherited

◆ updateDelegateSizes()

◆ updateGeometries()

void ShowFoto::ShowfotoCategorizedView::updateGeometries ( )
overrideprotectedinherited

◆ urls()

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