QGIS/python/gui/editorwidgets/qgsdatetimeedit.sip

80 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsdatetimeedit.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2014-09-01 11:51:56 +02:00
class QgsDateTimeEdit : QDateTimeEdit
{
2017-05-08 08:36:06 +02:00
%Docstring
The QgsDateTimeEdit class is a QDateTimeEdit with the capability of setting/reading null date/times.
%End
2014-09-01 11:51:56 +02:00
%TypeHeaderCode
#include "qgsdatetimeedit.h"
%End
public:
explicit QgsDateTimeEdit( QWidget *parent /TransferThis/ = 0 );
void setAllowNull( bool allowNull );
2017-05-08 08:36:06 +02:00
%Docstring
Determines if the widget allows setting null date/time.
%End
2014-09-01 11:51:56 +02:00
bool allowNull() const;
2017-05-08 08:36:06 +02:00
%Docstring
:rtype: bool
%End
2014-09-01 11:51:56 +02:00
void setDateTime( const QDateTime &dateTime );
2017-05-08 08:36:06 +02:00
%Docstring
setDateTime set the date time in the widget and handles null date times.
.. note::
since QDateTimeEdit.setDateTime() is not virtual, setDateTime must be called for QgsDateTimeEdit.
%End
2014-09-01 11:51:56 +02:00
QDateTime dateTime() const;
2017-05-08 08:36:06 +02:00
%Docstring
dateTime returns the date time which can eventually be a null date/time
.. note::
since QDateTimeEdit.dateTime() is not virtual, dateTime must be called for QgsDateTimeEdit.
:rtype: QDateTime
%End
2014-09-01 11:51:56 +02:00
virtual void clear();
2017-05-08 08:36:06 +02:00
%Docstring
Set the current date as NULL
.. note::
if the widget is not configured to accept NULL dates, this will have no effect
%End
2014-09-01 11:51:56 +02:00
void setEmpty();
2017-05-08 08:36:06 +02:00
%Docstring
Resets the widget to show no value (ie, an "unknown" state).
.. versionadded:: 2.16
%End
2014-09-01 11:51:56 +02:00
protected:
virtual void resizeEvent( QResizeEvent *event );
2014-09-01 11:51:56 +02:00
2017-05-08 08:36:06 +02:00
virtual void mousePressEvent( QMouseEvent *event );
2014-09-01 11:51:56 +02:00
};
2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsdatetimeedit.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/