QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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
 
virtual ~MenuProvider ()=default
 
virtual QMenu * createContextMenu (QgsExpressionItem *item)
 Returns a newly created menu instance.
 

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 162 of file qgsexpressiontreeview.h.

Constructor & Destructor Documentation

◆ MenuProvider()

QgsExpressionTreeView::MenuProvider::MenuProvider ( )
explicitdefault

◆ ~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 170 of file qgsexpressiontreeview.h.


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