Skip to content
Permalink
Browse files

Improved search for the relation reference widget

  • Loading branch information
m-kuhn committed Dec 15, 2016
1 parent 86afa4e commit 94b0de562d53aba2f83582fc82d58a62a351f735
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -19,6 +19,7 @@
#include <QDialog>
#include <QHBoxLayout>
#include <QTimer>
#include <QCompleter>

#include "qgsattributeform.h"
#include "qgsattributetablefiltermodel.h"
@@ -543,6 +544,14 @@ void QgsRelationReferenceWidget::init()

mComboBox->setModel( mFeatureListModel );

delete mComboBox->completer();
QCompleter* completer = new QCompleter( mComboBox->model(), mComboBox );
completer->setModel( mComboBox->model() );
completer->setFilterMode( Qt::MatchContains );
completer->setCaseSensitivity( Qt::CaseInsensitive );
mComboBox->setCompleter( completer );


QVariant nullValue = QSettings().value( QStringLiteral( "qgis/nullValue" ), "NULL" );

if ( mChainFilters && mFeature.isValid() )

0 comments on commit 94b0de5

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