QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | List of all members
QgsExpressionTreeView::MenuProvider Class Reference

#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 146 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 154 of file qgsexpressiontreeview.h.


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