2017-05-08 08:36:06 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsdatetimesearchwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-23 13:40:01 +10:00
|
|
|
|
2016-05-23 07:28:09 +10:00
|
|
|
class QgsDateTimeSearchWidgetWrapper : QgsSearchWidgetWrapper
|
|
|
|
{
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
|
|
|
Wraps a date/time edit widget for searching.
|
|
|
|
.. versionadded:: 2.16
|
2016-05-23 07:28:09 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsdatetimesearchwidgetwrapper.h"
|
|
|
|
%End
|
2016-05-23 07:28:09 +10:00
|
|
|
public:
|
2016-05-23 13:40:01 +10:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
explicit QgsDateTimeSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsDateTimeSearchWidgetWrapper.
|
|
|
|
\param vl associated vector layer
|
|
|
|
\param fieldIdx index of associated field
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-05-23 13:40:01 +10:00
|
|
|
|
2016-05-23 07:28:09 +10:00
|
|
|
QVariant value() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a variant representing the current state of the widget, respecting
|
|
|
|
the editor widget's configured field format for date/time values.
|
|
|
|
:rtype: QVariant
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual bool applyDirectly();
|
|
|
|
|
2017-11-01 19:31:13 +01:00
|
|
|
virtual QString expression() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
virtual bool valid() const;
|
|
|
|
|
|
|
|
virtual QgsSearchWidgetWrapper::FilterFlags supportedFlags() const;
|
|
|
|
|
|
|
|
virtual QgsSearchWidgetWrapper::FilterFlags defaultFlags() const;
|
|
|
|
|
|
|
|
virtual QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const;
|
2016-05-23 07:28:09 +10:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
virtual void clearWidget();
|
|
|
|
virtual void setEnabled( bool enabled );
|
|
|
|
|
|
|
|
protected:
|
2017-05-08 08:36:06 +02:00
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
|
|
|
|
virtual void initWidget( QWidget *editor );
|
|
|
|
|
2016-05-23 07:28:09 +10:00
|
|
|
|
|
|
|
protected slots:
|
2017-11-01 19:31:13 +01:00
|
|
|
virtual void setExpression( const QString &exp );
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
|
2016-05-23 07:28:09 +10:00
|
|
|
};
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsdatetimesearchwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|