QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsExpressionTreeView::MenuProvider Class Reference

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

#include <qgsexpressiontreeview.h>

Public Member Functions

 MenuProvider ()=default
 Constructor. More...
 
virtual ~MenuProvider ()=default
 
virtual QMenu * createContextMenu (QgsExpressionItem *item)
 Returns a newly created menu instance. More...
 

Detailed Description

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

Since
QGIS 3.14

Definition at line 148 of file qgsexpressiontreeview.h.

Constructor & Destructor Documentation

◆ MenuProvider()

QgsExpressionTreeView::MenuProvider::MenuProvider ( )
explicitdefault

Constructor.

◆ ~MenuProvider()

virtual QgsExpressionTreeView::MenuProvider::~MenuProvider ( )
virtualdefault

Member Function Documentation

◆ createContextMenu()

virtual QMenu* QgsExpressionTreeView::MenuProvider::createContextMenu ( QgsExpressionItem item)
inlinevirtual

Returns a newly created menu instance.

Definition at line 156 of file qgsexpressiontreeview.h.


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