digiKam
Digikam::ActionCategorizedView Class Reference
+ Inheritance diagram for Digikam::ActionCategorizedView:

Public Slots

void reset () override
 

Public Member Functions

 ActionCategorizedView (QWidget *const parent=nullptr, bool autoScroll=false)
 
void adjustGridSize ()
 
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
 
QModelIndex indexAt (const QPoint &point) const override
 
void setCategoryDrawer (DCategoryDrawer *categoryDrawer)
 
void setDrawDraggedItems (bool drawDraggedItems)
 
void setGridSize (const QSize &size)
 
void setModel (QAbstractItemModel *model) override
 
void setupIconMode ()
 
QRect visualRect (const QModelIndex &index) const override
 
 ~ActionCategorizedView () override
 

Protected Slots

void currentChanged (const QModelIndex &current, const QModelIndex &previous) override
 
void rowsInserted (const QModelIndex &parent, int start, int end) override
 
virtual void rowsInsertedArtifficial (const QModelIndex &parent, int start, int end)
 
virtual void rowsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void slotLayoutChanged ()
 
void updateGeometries () override
 

Protected Member Functions

void autoScroll (float relativePos, QScrollBar *scrollBar, QPropertyAnimation *animation)
 
int autoScrollDuration (float relativeDifference, QPropertyAnimation *animation)
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
void leaveEvent (QEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) override
 
void startDrag (Qt::DropActions supportedActions) override
 

Protected Attributes

bool m_autoScroll
 
QPropertyAnimation * m_horizontalScrollAnimation
 
QPropertyAnimation * m_verticalScrollAnimation
 

Constructor & Destructor Documentation

◆ ActionCategorizedView()

Digikam::ActionCategorizedView::ActionCategorizedView ( QWidget *const  parent = nullptr,
bool  autoScroll = false 
)
explicit

◆ ~ActionCategorizedView()

Digikam::ActionCategorizedView::~ActionCategorizedView ( )
override

Member Function Documentation

◆ adjustGridSize()

void Digikam::ActionCategorizedView::adjustGridSize ( )

◆ autoScroll()

void Digikam::ActionCategorizedView::autoScroll ( float  relativePos,
QScrollBar *  scrollBar,
QPropertyAnimation *  animation 
)
protected

References autoScrollDuration().

Referenced by mouseMoveEvent().

◆ autoScrollDuration()

int Digikam::ActionCategorizedView::autoScrollDuration ( float  relativeDifference,
QPropertyAnimation *  animation 
)
protected

Referenced by autoScroll().

◆ 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

◆ currentChanged

◆ dragLeaveEvent()

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

◆ dragMoveEvent()

◆ dropEvent()

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

◆ indexAt()

◆ leaveEvent()

void Digikam::ActionCategorizedView::leaveEvent ( QEvent *  e)
overrideprotected

◆ mouseMoveEvent()

void Digikam::ActionCategorizedView::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

◆ mouseReleaseEvent()

◆ moveCursor()

◆ paintEvent()

◆ reset

◆ resizeEvent()

◆ rowsInserted

◆ rowsInsertedArtifficial

◆ rowsRemoved

◆ setCategoryDrawer()

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

◆ setGridSize()

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

◆ setModel()

◆ setSelection()

◆ setupIconMode()

void Digikam::ActionCategorizedView::setupIconMode ( )

◆ slotLayoutChanged

◆ startDrag()

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

◆ updateGeometries

◆ visualRect()

Member Data Documentation

◆ m_autoScroll

bool Digikam::ActionCategorizedView::m_autoScroll
protected

Referenced by mouseMoveEvent().

◆ m_horizontalScrollAnimation

QPropertyAnimation* Digikam::ActionCategorizedView::m_horizontalScrollAnimation
protected

◆ m_verticalScrollAnimation

QPropertyAnimation* Digikam::ActionCategorizedView::m_verticalScrollAnimation
protected

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