QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsLayerTreeViewMenuProvider Class Reference

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 QMenu * createContextMenu ()=0
 Return a newly created menu instance (or null pointer on error)

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

Constructor & Destructor Documentation

virtual QgsLayerTreeViewMenuProvider::~QgsLayerTreeViewMenuProvider ( )
inlinevirtual

Member Function Documentation

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: