Skip to content

Commit

Permalink
Don't require a parent for QgsExpressionBuilderWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 16, 2016
1 parent d07d9ed commit 9080aa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/gui/qgsexpressionbuilderwidget.sip
Expand Up @@ -79,7 +79,7 @@ class QgsExpressionBuilderWidget : QWidget
%End

public:
QgsExpressionBuilderWidget( QWidget *parent /TransferThis/ );
QgsExpressionBuilderWidget( QWidget *parent /TransferThis/ = nullptr );
~QgsExpressionBuilderWidget();

/** Sets layer in order to get the fields and values
Expand Down
5 changes: 4 additions & 1 deletion src/gui/qgsexpressionbuilderwidget.h
Expand Up @@ -118,7 +118,10 @@ class GUI_EXPORT QgsExpressionBuilderWidget : public QWidget, private Ui::QgsExp
{
Q_OBJECT
public:
QgsExpressionBuilderWidget( QWidget *parent );
/**
* Create a new expression builder widget with an optional parent.
*/
QgsExpressionBuilderWidget( QWidget* parent = nullptr );
~QgsExpressionBuilderWidget();

/** Sets layer in order to get the fields and values
Expand Down

0 comments on commit 9080aa1

Please sign in to comment.