QGIS/python/gui/editorwidgets/qgsdatetimesearchwidgetwrapper.sip

77 lines
2.3 KiB
Plaintext
Raw Normal View History

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
class QgsDateTimeSearchWidgetWrapper : QgsSearchWidgetWrapper
{
2017-05-08 08:36:06 +02:00
%Docstring
Wraps a date/time edit widget for searching.
.. versionadded:: 2.16
%End
2017-05-08 08:36:06 +02:00
%TypeHeaderCode
#include "qgsdatetimesearchwidgetwrapper.h"
%End
public:
2016-05-23 13:40:01 +10: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
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();
virtual QString expression();
virtual bool valid() const;
virtual QgsSearchWidgetWrapper::FilterFlags supportedFlags() const;
virtual QgsSearchWidgetWrapper::FilterFlags defaultFlags() const;
virtual QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const;
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 );
protected slots:
2017-05-08 08:36:06 +02:00
virtual void setExpression( QString exp );
};
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 *
************************************************************************/