Skip to content
Permalink
Browse files

Merge pull request #8338 from 3nids/fix20201

use Exclude field by default for relation search widget wrapper
  • Loading branch information
m-kuhn committed Oct 26, 2018
2 parents f0735d9 + 95142cc commit 694424000c73afc97ca1fcbade09c4668d609e48
@@ -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 6944240

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