You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gui/editorwidgets/qgsvaluerelationsearchwidgetwrapper.h
+10-20
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
#ifndef QGSVALUERELATIONSEARCHWIDGETWRAPPER_H
17
17
#defineQGSVALUERELATIONSEARCHWIDGETWRAPPER_H
18
18
19
-
#include"qgsdefaultsearchwidgetwrapper.h"
19
+
#include"qgssearchwidgetwrapper.h"
20
20
#include"qgsvaluerelationwidgetwrapper.h"
21
21
22
22
#include<QComboBox>
@@ -26,26 +26,12 @@
26
26
classQgsValueRelationWidgetFactory;
27
27
28
28
/**
29
-
* Wraps a value relation widget. This widget will offer a combobox with values from another layer
29
+
* Wraps a value relation search widget. This widget will offer a combobox with values from another layer
30
30
* referenced by a foreign key (a constraint may be set but is not required on data level).
31
-
* This is useful for having value lists on a separate layer containing codes and their
32
-
* translation to human readable names.
33
-
*
34
-
* Options:
35
-
*
36
-
* <ul>
37
-
* <li><b>Layer</b> <i>The id of the referenced layer.</i></li>
38
-
* <li><b>Key</b> <i>The key field on the referenced layer (code).</i></li>
39
-
* <li><b>Value</b> <i>The value field on the referenced layer (human readable name).</i></li>
40
-
* <li><b>AllowMulti</b> <i>If set to True, will allow multiple selections. This requires the data type to be a string. This does NOT work with normalized database structures.</i></li>
41
-
* <li><b>AllowNull</b> <i>Will offer NULL as a possible value.</i></li>
42
-
* <li><b>FilterExpression</b> <i>If not empty, will be used as expression. Only if this evaluates to True, the value will be shown.</i></li>
43
-
* <li><b>OrderByValue</b> <i>Will order by value instead of key.</i></li>
44
-
* </ul>
45
-
*
31
+
* It will be used as a search widget and produces expression to look for in the layer.
46
32
*/
47
33
48
-
classGUI_EXPORT QgsValueRelationSearchWidgetWrapper : public QgsDefaultSearchWidgetWrapper
34
+
classGUI_EXPORT QgsValueRelationSearchWidgetWrapper : public QgsSearchWidgetWrapper
49
35
{
50
36
Q_OBJECT
51
37
@@ -56,8 +42,9 @@ class GUI_EXPORT QgsValueRelationSearchWidgetWrapper : public QgsDefaultSearchWi
56
42
public:
57
43
explicitQgsValueRelationSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent = 0 );
0 commit comments