digiKam
|
Public Member Functions | |
void | addOverlay (ItemDelegateOverlay *overlay) |
virtual void | copy () |
virtual void | cut () |
VersionsDelegate * | delegate () 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) |
AbstractItemDragDropHandler * | dragDropHandler () 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 | |
VersionsDelegate * | m_delegate |
AbstractItemDragDropHandler * | m_dragDropHandler |
bool | m_showToolTip |
ToolTip * | m_toolTip |
|
explicit |
References m_delegate, and Digikam::ItemDelegateOverlayContainer::setViewOnAllOverlays().
|
override |
NOTE: All overlay management code in a sophisticated form can be studied in ItemCategorizedView.
References m_delegate, and Digikam::ItemDelegateOverlayContainer::removeAllOverlays().
void Digikam::VersionsTreeView::addOverlay | ( | ItemDelegateOverlay * | overlay | ) |
|
protectedpure virtualinherited |
This one is implemented by DECLARE_VIEW_DRAG_DROP_METHODS.
Referenced by Digikam::DragDropViewImplementation::copy(), Digikam::DragDropViewImplementation::cut(), Digikam::DragDropViewImplementation::dragMoveEvent(), Digikam::DragDropViewImplementation::dropEvent(), Digikam::DragDropViewImplementation::paste(), and Digikam::DragDropViewImplementation::startDrag().
|
virtualinherited |
|
virtualinherited |
|
protectedinherited |
Referenced by Digikam::DragDropViewImplementation::paste().
VersionsDelegate * Digikam::VersionsTreeView::delegate | ( | ) | const |
References m_delegate.
|
overrideprotectedvirtual |
You need to implement these three methods Returns the drag drop handler.
Implements Digikam::DragDropViewImplementation.
References m_dragDropHandler.
|
protectedinherited |
Implements the relevant QAbstractItemView methods for drag and drop.
References Digikam::AbstractItemDragDropHandler::acceptsMimeData(), and Digikam::DragDropViewImplementation::dragDropHandler().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
References Digikam::DragDropViewImplementation::cut().
Referenced by Digikam::DragDropViewImplementation::copy(), and Digikam::DragDropViewImplementation::cut().
|
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.
|
overrideprotected |
References m_delegate, and Digikam::ItemDelegateOverlayContainer::mouseMoved().
|
overrideprotected |
|
overrideprotected |
|
virtualinherited |
References Digikam::DragDropViewImplementation::asView(), Digikam::CopyAction, Digikam::DragDropViewImplementation::decodeIsCutSelection(), Digikam::DragDropViewImplementation::dragDropHandler(), Digikam::AbstractItemDragDropHandler::dropEvent(), and Digikam::MoveAction.
Referenced by Digikam::ItemViewCategorized::paste(), and Digikam::TableView::slotPaste().
|
overrideprotectedvirtual |
Creates a pixmap for dragging the given indexes.
Implements Digikam::DragDropViewImplementation.
References Digikam::DItemDelegate::makeDragPixmap().
void Digikam::VersionsTreeView::removeOverlay | ( | ItemDelegateOverlay * | overlay | ) |
|
protectedvirtual |
References m_dragDropHandler.
void Digikam::VersionsTreeView::setToolTipEnabled | ( | bool | on | ) |
References m_showToolTip, and m_toolTip.
|
protectedinherited |
|
overrideprotected |
|
protected |
Referenced by addOverlay(), delegate(), mouseMoveEvent(), removeOverlay(), VersionsTreeView(), and ~VersionsTreeView().
|
protected |
Referenced by dragDropHandler(), and setDragDropHandler().
|
protected |
Referenced by setToolTipEnabled(), and viewportEvent().
|
protected |
Referenced by setToolTipEnabled(), and viewportEvent().