QElectroTech  0.8-dev
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>

Inherits QTreeView.

Collaboration diagram for ElementsTreeView:
Collaboration graph

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 location. 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.

Constructor & Destructor Documentation

◆ ElementsTreeView()

ElementsTreeView::ElementsTreeView ( QWidget *  parent = nullptr)

Member Function Documentation

◆ startDrag()

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

ElementsTreeView::startDrag Reimplemented from QTreeView.

Parameters
supportedActions
Here is the call graph for this function:

◆ startElementDrag()

void ElementsTreeView::startElementDrag ( const ElementsLocation location)
protectedvirtual

ElementsTreeView::startElementDrag Build a QDrag according to the content of location.

Parameters
location: location to use for create the content of the QDrag
Here is the call graph for this function:
Here is the caller graph for this function:

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