Skip to content

Commit

Permalink
fix dox
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 27, 2020
1 parent 4fc4bcf commit b3259bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/gui/auto_generated/qgsexpressiontreeview.sip.in
Expand Up @@ -115,13 +115,18 @@ functions, variables and fields that can be used in an expression.
%Docstring
Implementation of this interface can be implemented to allow QgsExpressionTreeView
instance to provide custom context menus (opened upon right-click).

.. versionadded:: 3.14
%End

%TypeHeaderCode
#include "qgsexpressiontreeview.h"
%End
public:
explicit MenuProvider();
%Docstring
Constructor
%End
virtual ~MenuProvider();

virtual QMenu *createContextMenu( QgsExpressionItem *item ) /Factory/;
Expand All @@ -131,6 +136,9 @@ Returns a newly created menu instance
};

QgsExpressionTreeView( QWidget *parent = 0 );
%Docstring
Constructor
%End

void setLayer( QgsVectorLayer *layer );
%Docstring
Expand Down Expand Up @@ -245,6 +253,9 @@ Emitter when the current expression item changed

public slots:
void setSearchText( const QString &text );
%Docstring
Sets the text to filter the expression tree
%End


};
Expand Down
5 changes: 5 additions & 0 deletions src/gui/qgsexpressiontreeview.h
Expand Up @@ -136,19 +136,23 @@ class GUI_EXPORT QgsExpressionTreeView : public QTreeView
public:

/**
* \ingroup gui
* Implementation of this interface can be implemented to allow QgsExpressionTreeView
* instance to provide custom context menus (opened upon right-click).
* \since QGIS 3.14
*/
class MenuProvider
{
public:
//! Constructor
explicit MenuProvider() = default;
virtual ~MenuProvider() = default;

//! Returns a newly created menu instance
virtual QMenu *createContextMenu( QgsExpressionItem *item ) SIP_FACTORY {Q_UNUSED( item ) return nullptr;}
};

//! Constructor
QgsExpressionTreeView( QWidget *parent = nullptr );

/**
Expand Down Expand Up @@ -264,6 +268,7 @@ class GUI_EXPORT QgsExpressionTreeView : public QTreeView
void currentExpressionItemChanged( QgsExpressionItem *item );

public slots:
//! Sets the text to filter the expression tree
void setSearchText( const QString &text );


Expand Down

0 comments on commit b3259bf

Please sign in to comment.