Skip to content
Permalink
Browse files

use Exclude field by default for relation search widget wrapper

fix #20201
  • Loading branch information
3nids committed Oct 25, 2018
1 parent 3088574 commit 95142cc19e9fb68977e6c9e3989194e012b2d107
@@ -47,8 +47,6 @@ Returns a variant representing the current state of the widget.

virtual QgsSearchWidgetWrapper::FilterFlags supportedFlags() const;

virtual QgsSearchWidgetWrapper::FilterFlags defaultFlags() const;

virtual QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const;


@@ -56,11 +56,6 @@ QgsSearchWidgetWrapper::FilterFlags QgsRelationReferenceSearchWidgetWrapper::sup
return EqualTo | NotEqualTo | IsNull | IsNotNull;
}

QgsSearchWidgetWrapper::FilterFlags QgsRelationReferenceSearchWidgetWrapper::defaultFlags() const
{
return EqualTo;
}

QString QgsRelationReferenceSearchWidgetWrapper::createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const
{
QString fieldName = createFieldIdentifier();
@@ -58,7 +58,6 @@ class GUI_EXPORT QgsRelationReferenceSearchWidgetWrapper : public QgsSearchWidge
QString expression() const override;
bool valid() const override;
QgsSearchWidgetWrapper::FilterFlags supportedFlags() const override;
QgsSearchWidgetWrapper::FilterFlags defaultFlags() const override;
QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const override;

public slots:

0 comments on commit 95142cc

Please sign in to comment.
You can’t perform that action at this time.