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

Signals

void signalZoomInStep ()
 
void signalZoomOutStep ()
 

Public Member Functions

AlbumalbumAt (const QPoint &pos) const
 
virtual void copy ()
 
virtual void cut ()
 
ItemInfoList getHiddenGroupedInfos (const ItemInfoList &infos) const
 
bool needGroupResolving (ApplicationSettings::OperationType type, const ItemInfoList &infos) const
 
virtual void paste ()
 
ItemInfoList resolveGrouping (const ItemInfoList &infos) const
 
 TableViewTreeView (TableViewShared *const tableViewShared, QWidget *const parent=nullptr)
 
 ~TableViewTreeView () override
 

Protected Member Functions

virtual QAbstractItemView * asView ()=0
 
bool decodeIsCutSelection (const QMimeData *mimeData)
 
AbstractItemDragDropHandlerdragDropHandler () const override
 
void dragEnterEvent (QDragEnterEvent *event)
 
void dragMoveEvent (QDragMoveEvent *e)
 
void dropEvent (QDropEvent *e)
 
void encodeIsCutSelection (QMimeData *mime, bool isCutSelection)
 
bool eventFilter (QObject *watched, QEvent *event) override
 
bool hasHiddenGroupedImages (const ItemInfo &info) const override
 must be implemented by parent view More...
 
QModelIndex mapIndexForDragDrop (const QModelIndex &index) const override
 
QPixmap pixmapForDrag (const QList< QModelIndex > &indexes) const override
 
void startDrag (Qt::DropActions supportedActions)
 
void wheelEvent (QWheelEvent *event) override
 

Detailed Description

Constructor & Destructor Documentation

◆ TableViewTreeView()

Digikam::TableViewTreeView::TableViewTreeView ( TableViewShared *const  tableViewShared,
QWidget *const  parent = nullptr 
)
explicit

◆ ~TableViewTreeView()

Digikam::TableViewTreeView::~TableViewTreeView ( )
override

Member Function Documentation

◆ albumAt()

Album * Digikam::TableViewTreeView::albumAt ( const QPoint &  pos) const

◆ asView()

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

◆ copy()

void Digikam::DragDropViewImplementation::copy ( )
virtualinherited

◆ cut()

◆ decodeIsCutSelection()

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

◆ dragDropHandler()

AbstractItemDragDropHandler * Digikam::TableViewTreeView::dragDropHandler ( ) const
overrideprotectedvirtual

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

Implements Digikam::DragDropViewImplementation.

References Digikam::DragDropModelImplementation::dragDropHandler(), and Digikam::TableViewShared::imageModel.

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

◆ dragMoveEvent()

◆ dropEvent()

◆ encodeIsCutSelection()

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

◆ eventFilter()

bool Digikam::TableViewTreeView::eventFilter ( QObject *  watched,
QEvent *  event 
)
overrideprotected

◆ getHiddenGroupedInfos()

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

◆ hasHiddenGroupedImages()

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

◆ mapIndexForDragDrop()

QModelIndex Digikam::TableViewTreeView::mapIndexForDragDrop ( const QModelIndex &  index) const
overrideprotectedvirtual

Maps the given index of the view's model to an index of the handler's model, which can be a source model of the view's model.

Implements Digikam::DragDropViewImplementation.

References Digikam::TableViewShared::tableViewModel, and Digikam::TableViewModel::toItemModelIndex().

◆ needGroupResolving()

◆ paste()

◆ pixmapForDrag()

QPixmap Digikam::TableViewTreeView::pixmapForDrag ( const QList< QModelIndex > &  indexes) const
overrideprotectedvirtual

◆ resolveGrouping()

◆ signalZoomInStep

void Digikam::TableViewTreeView::signalZoomInStep ( )
signal

Referenced by wheelEvent().

◆ signalZoomOutStep

void Digikam::TableViewTreeView::signalZoomOutStep ( )
signal

Referenced by wheelEvent().

◆ startDrag()

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

◆ wheelEvent()

void Digikam::TableViewTreeView::wheelEvent ( QWheelEvent *  event)
overrideprotected

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