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

Public Member Functions

void addOverlay (ItemDelegateOverlay *overlay)
 
virtual void copy ()
 
virtual void cut ()
 
VersionsDelegatedelegate () const
 
virtual void paste ()
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
void setToolTipEnabled (bool on)
 
 VersionsTreeView (QWidget *const parent=nullptr)
 
 ~VersionsTreeView () override
 NOTE: All overlay management code in a sophisticated form can be studied in ItemCategorizedView. More...
 

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)
 
QModelIndex mapIndexForDragDrop (const QModelIndex &index) const override
 
void mouseMoveEvent (QMouseEvent *event) override
 
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 
void paintEvent (QPaintEvent *e) override
 
QPixmap pixmapForDrag (const QList< QModelIndex > &indexes) const override
 
virtual void setDragDropHandler (AbstractItemDragDropHandler *handler)
 
void startDrag (Qt::DropActions supportedActions)
 
bool viewportEvent (QEvent *event) override
 

Protected Attributes

VersionsDelegatem_delegate
 
AbstractItemDragDropHandlerm_dragDropHandler
 
bool m_showToolTip
 
ToolTip * m_toolTip
 

Constructor & Destructor Documentation

◆ VersionsTreeView()

Digikam::VersionsTreeView::VersionsTreeView ( QWidget *const  parent = nullptr)
explicit

◆ ~VersionsTreeView()

Digikam::VersionsTreeView::~VersionsTreeView ( )
override

NOTE: All overlay management code in a sophisticated form can be studied in ItemCategorizedView.

References m_delegate, and Digikam::ItemDelegateOverlayContainer::removeAllOverlays().

Member Function Documentation

◆ addOverlay()

◆ asView()

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

◆ copy()

void Digikam::DragDropViewImplementation::copy ( )
virtualinherited

◆ cut()

◆ decodeIsCutSelection()

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

◆ delegate()

VersionsDelegate * Digikam::VersionsTreeView::delegate ( ) const

References m_delegate.

◆ dragDropHandler()

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

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

Implements Digikam::DragDropViewImplementation.

References m_dragDropHandler.

◆ 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

◆ mapIndexForDragDrop()

QModelIndex Digikam::VersionsTreeView::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.

◆ mouseMoveEvent()

void Digikam::VersionsTreeView::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

◆ moveCursor()

QModelIndex Digikam::VersionsTreeView::moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
)
overrideprotected

◆ paintEvent()

void Digikam::VersionsTreeView::paintEvent ( QPaintEvent *  e)
overrideprotected

◆ paste()

◆ pixmapForDrag()

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

Creates a pixmap for dragging the given indexes.

Implements Digikam::DragDropViewImplementation.

References Digikam::DItemDelegate::makeDragPixmap().

◆ removeOverlay()

void Digikam::VersionsTreeView::removeOverlay ( ItemDelegateOverlay overlay)

◆ setDragDropHandler()

void Digikam::VersionsTreeView::setDragDropHandler ( AbstractItemDragDropHandler handler)
protectedvirtual

References m_dragDropHandler.

◆ setToolTipEnabled()

void Digikam::VersionsTreeView::setToolTipEnabled ( bool  on)

References m_showToolTip, and m_toolTip.

◆ startDrag()

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

◆ viewportEvent()

bool Digikam::VersionsTreeView::viewportEvent ( QEvent *  event)
overrideprotected

Member Data Documentation

◆ m_delegate

VersionsDelegate* Digikam::VersionsTreeView::m_delegate
protected

◆ m_dragDropHandler

AbstractItemDragDropHandler* Digikam::VersionsTreeView::m_dragDropHandler
protected

◆ m_showToolTip

bool Digikam::VersionsTreeView::m_showToolTip
protected

Referenced by setToolTipEnabled(), and viewportEvent().

◆ m_toolTip

ToolTip* Digikam::VersionsTreeView::m_toolTip
protected

Referenced by setToolTipEnabled(), and viewportEvent().


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