-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsdefaultsearchwidgetwrapper.sip
46 lines (37 loc) · 1.26 KB
/
qgsdefaultsearchwidgetwrapper.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Wraps a search widget. Default form is just a QgsLineFilterEdit
*/
class QgsDefaultSearchWidgetWrapper : QgsSearchWidgetWrapper
{
%TypeHeaderCode
#include <qgsdefaultsearchwidgetwrapper.h>
%End
public:
explicit QgsDefaultSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent /TransferThis/ = nullptr );
// QgsSearchWidgetWrapper interface
public:
QString expression();
bool applyDirectly();
FilterFlags supportedFlags() const;
FilterFlags defaultFlags() const;
virtual QString createExpression( FilterFlags flags ) const;
public slots:
virtual void clearWidget();
virtual void setEnabled( bool enabled );
protected slots:
void setExpression( QString exp );
protected:
QWidget* createWidget( QWidget* parent );
void initWidget( QWidget* editor );
bool valid() const;
/** Returns a pointer to the line edit part of the widget.
* @note this method is in place for unit testing only, and is not considered
* stable API
*/
QgsFilterLineEdit* lineEdit();
/** Returns a pointer to the case sensitivity check box in the widget.
* @note this method is in place for unit testing only, and is not considered
* stable API
*/
QCheckBox* caseSensitiveCheckBox();
};