QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
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 160 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 168 of file qgsexpressiontreeview.h.


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