File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 19
19
#include < QDialog>
20
20
#include < QHBoxLayout>
21
21
#include < QTimer>
22
+ #include < QCompleter>
22
23
23
24
#include " qgsattributeform.h"
24
25
#include " qgsattributetablefiltermodel.h"
@@ -543,6 +544,14 @@ void QgsRelationReferenceWidget::init()
543
544
544
545
mComboBox ->setModel ( mFeatureListModel );
545
546
547
+ delete mComboBox ->completer ();
548
+ QCompleter* completer = new QCompleter ( mComboBox ->model (), mComboBox );
549
+ completer->setModel ( mComboBox ->model () );
550
+ completer->setFilterMode ( Qt::MatchContains );
551
+ completer->setCaseSensitivity ( Qt::CaseInsensitive );
552
+ mComboBox ->setCompleter ( completer );
553
+
554
+
546
555
QVariant nullValue = QSettings ().value ( QStringLiteral ( " qgis/nullValue" ), " NULL" );
547
556
548
557
if ( mChainFilters && mFeature .isValid () )
You can’t perform that action at this time.
0 commit comments