QElectroTech  0.70
Public Member Functions | Protected Member Functions | List of all members
ElementsTreeView Class Reference

The ElementsTreeView class This class just reimplement startDrag from QTreeView, for set a custom pixmap. This class must be used when the tree view have an ElementsCollectionModel as model. The pixmap used is the pixmap of the dragged element or a directory pixmap. More...

#include <elementstreeview.h>

Public Member Functions

 ElementsTreeView (QWidget *parent=nullptr)
 ElementsTreeView::ElementsTreeView. More...
 

Protected Member Functions

void startDrag (Qt::DropActions supportedActions) override
 ElementsTreeView::startDrag Reimplemented from QTreeView. More...
 
virtual void startElementDrag (const ElementsLocation &location)
 ElementsTreeView::startElementDrag Build a QDrag according to the content of . More...
 

Detailed Description

The ElementsTreeView class This class just reimplement startDrag from QTreeView, for set a custom pixmap. This class must be used when the tree view have an ElementsCollectionModel as model. The pixmap used is the pixmap of the dragged element or a directory pixmap.

Definition at line 31 of file elementstreeview.h.

Constructor & Destructor Documentation

◆ ElementsTreeView()

ElementsTreeView::ElementsTreeView ( QWidget *  parent = nullptr)

ElementsTreeView::ElementsTreeView.

Parameters
parent

Definition at line 35 of file elementstreeview.cpp.

Member Function Documentation

◆ startDrag()

void ElementsTreeView::startDrag ( Qt::DropActions  supportedActions)
overrideprotected

ElementsTreeView::startDrag Reimplemented from QTreeView.

Parameters
supportedActions

Definition at line 44 of file elementstreeview.cpp.

References startElementDrag().

◆ startElementDrag()

void ElementsTreeView::startElementDrag ( const ElementsLocation location)
protectedvirtual

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