QGIS API Documentation  2.17.0-Master (eef6f05)
Public Member Functions | List of all members
QgsLayerTreeViewMenuProvider Class Referenceabstract

Implementation of this interface can be implemented to allow QgsLayerTreeView instance to provide custom context menus (opened upon right-click). More...

#include <qgslayertreeview.h>

Public Member Functions

virtual ~QgsLayerTreeViewMenuProvider ()
 
virtual QMenucreateContextMenu ()=0
 Return a newly created menu instance (or null pointer on error) More...
 

Detailed Description

Implementation of this interface can be implemented to allow QgsLayerTreeView instance to provide custom context menus (opened upon right-click).

See also
QgsLayerTreeView
Note
added in 2.4

Definition at line 134 of file qgslayertreeview.h.

Constructor & Destructor Documentation

§ ~QgsLayerTreeViewMenuProvider()

virtual QgsLayerTreeViewMenuProvider::~QgsLayerTreeViewMenuProvider ( )
inlinevirtual

Definition at line 137 of file qgslayertreeview.h.

Member Function Documentation

§ createContextMenu()

virtual QMenu* QgsLayerTreeViewMenuProvider::createContextMenu ( )
pure virtual

Return a newly created menu instance (or null pointer on error)


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