Skip to content

Commit e00ea61

Browse files
committed
Add missing docs
1 parent 02c0174 commit e00ea61

File tree

4 files changed

+70
-12
lines changed

4 files changed

+70
-12
lines changed

python/gui/editorwidgets/qgscheckboxsearchwidgetwrapper.sip

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
1-
/**
2-
* Wraps a checkbox search widget.
1+
/** \ingroup gui
2+
* \class QgsCheckboxSearchWidgetWrapper
3+
* Wraps a checkbox edit widget for searching.
4+
* \note Added in version 2.16
35
*/
6+
47
class QgsCheckboxSearchWidgetWrapper : QgsSearchWidgetWrapper
58
{
69
%TypeHeaderCode
710
#include <qgscheckboxsearchwidgetwrapper.h>
811
%End
912
public:
1013

14+
/** Constructor for QgsCheckboxSearchWidgetWrapper.
15+
* @param vl associated vector layer
16+
* @param fieldIdx index of associated field
17+
* @param parent parent widget
18+
*/
1119
explicit QgsCheckboxSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent /TransferThis/ = nullptr );
1220

21+
/** Returns a variant representing the current state of the widget.
22+
* @note this will not be a boolean true or false value, it will instead
23+
* be the values configured to represent checked and unchecked states in
24+
* the editor widget configuration.
25+
*/
26+
QVariant value() const;
27+
1328
// QgsSearchWidgetWrapper interface
1429
public:
1530
bool applyDirectly();
1631
QString expression();
1732
bool valid() const;
18-
QVariant value() const;
1933
FilterFlags supportedFlags() const;
2034
FilterFlags defaultFlags() const;
2135
virtual QString createExpression( FilterFlags flags ) const;

python/gui/editorwidgets/qgsdatetimesearchwidgetwrapper.sip

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/**
2-
* Wraps a date time search widget.
1+
/** \ingroup gui
2+
* \class QgsDateTimeSearchWidgetWrapper
3+
* Wraps a date/time edit widget for searching.
4+
* \note Added in version 2.16
35
*/
6+
47
class QgsDateTimeSearchWidgetWrapper : QgsSearchWidgetWrapper
58
{
69
%TypeHeaderCode
@@ -9,10 +12,21 @@ class QgsDateTimeSearchWidgetWrapper : QgsSearchWidgetWrapper
912
public:
1013

1114
public:
15+
16+
/** Constructor for QgsDateTimeSearchWidgetWrapper.
17+
* @param vl associated vector layer
18+
* @param fieldIdx index of associated field
19+
* @param parent parent widget
20+
*/
1221
explicit QgsDateTimeSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent /TransferThis/ = nullptr );
22+
23+
/** Returns a variant representing the current state of the widget, respecting
24+
* the editor widget's configured field format for date/time values.
25+
*/
26+
bool valid() const;
27+
1328
bool applyDirectly();
1429
QString expression();
15-
bool valid() const;
1630
QVariant value() const;
1731
FilterFlags supportedFlags() const;
1832
FilterFlags defaultFlags() const;

src/gui/editorwidgets/qgscheckboxsearchwidgetwrapper.h

+19-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,35 @@
2525

2626
class QgsCheckboxWidgetFactory;
2727

28-
/**
29-
* Wraps a checkbox search widget.
28+
/** \ingroup gui
29+
* \class QgsCheckboxSearchWidgetWrapper
30+
* Wraps a checkbox edit widget for searching.
31+
* \note Added in version 2.16
3032
*/
33+
3134
class GUI_EXPORT QgsCheckboxSearchWidgetWrapper : public QgsSearchWidgetWrapper
3235
{
3336
Q_OBJECT
3437

3538
public:
39+
40+
/** Constructor for QgsCheckboxSearchWidgetWrapper.
41+
* @param vl associated vector layer
42+
* @param fieldIdx index of associated field
43+
* @param parent parent widget
44+
*/
3645
explicit QgsCheckboxSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent = nullptr );
46+
47+
/** Returns a variant representing the current state of the widget.
48+
* @note this will not be a boolean true or false value, it will instead
49+
* be the values configured to represent checked and unchecked states in
50+
* the editor widget configuration.
51+
*/
52+
QVariant value() const;
53+
3754
bool applyDirectly() override;
3855
QString expression() override;
3956
bool valid() const override;
40-
QVariant value() const;
4157
FilterFlags supportedFlags() const override;
4258
FilterFlags defaultFlags() const override;
4359
virtual QString createExpression( FilterFlags flags ) const override;

src/gui/editorwidgets/qgsdatetimesearchwidgetwrapper.h

+17-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,33 @@
2525

2626
class QgsDateTimeEditFactory;
2727

28-
/**
29-
* Wraps a date time search widget.
28+
/** \ingroup gui
29+
* \class QgsDateTimeSearchWidgetWrapper
30+
* Wraps a date/time edit widget for searching.
31+
* \note Added in version 2.16
3032
*/
33+
3134
class GUI_EXPORT QgsDateTimeSearchWidgetWrapper : public QgsSearchWidgetWrapper
3235
{
3336
Q_OBJECT
3437

3538
public:
39+
40+
/** Constructor for QgsDateTimeSearchWidgetWrapper.
41+
* @param vl associated vector layer
42+
* @param fieldIdx index of associated field
43+
* @param parent parent widget
44+
*/
3645
explicit QgsDateTimeSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent = nullptr );
46+
47+
/** Returns a variant representing the current state of the widget, respecting
48+
* the editor widget's configured field format for date/time values.
49+
*/
50+
QVariant value() const;
51+
3752
bool applyDirectly() override;
3853
QString expression() override;
3954
bool valid() const override;
40-
QVariant value() const;
4155
FilterFlags supportedFlags() const override;
4256
FilterFlags defaultFlags() const override;
4357
virtual QString createExpression( FilterFlags flags ) const override;

0 commit comments

Comments
 (0)