Skip to content
Permalink
Browse files

doxymentattion

  • Loading branch information
3nids committed Jan 4, 2018
1 parent d8cc285 commit 25286393207d236cd2d299ab702673ff2860ce4a
Showing with 24 additions and 0 deletions.
  1. +13 −0 python/gui/editorwidgets/qgsdatetimeedit.sip
  2. +11 −0 src/gui/editorwidgets/qgsdatetimeedit.h
@@ -12,6 +12,13 @@ class QgsDateTimeEdit : QDateTimeEdit
{
%Docstring
The QgsDateTimeEdit class is a QDateTimeEdit with the capability of setting/reading null date/times.

.. warning::

You should use the signal dateTimeChanged of this subclass QgsDateTimeEdit
rather than parent's one (QDateTimeEdit). If you consequently connect parent's
dateTimeChanged signal and call dateTime() afterwards there is no warranty to
have a proper NULL value handling.
%End

%TypeHeaderCode
@@ -66,7 +73,13 @@ Resets the widget to show no value (ie, an "unknown" state).
%End

signals:

void dateTimeChanged( const QDateTime &date );
%Docstring
reimplements QDateTimeEdit.dateTimeChanged signal
to properly handles NULL values.
@param date the new date/time value.
%End

protected:
virtual void mousePressEvent( QMouseEvent *event );
@@ -23,6 +23,11 @@
/**
* \ingroup gui
* \brief The QgsDateTimeEdit class is a QDateTimeEdit with the capability of setting/reading null date/times.
*
* \warning You should use the signal dateTimeChanged of this subclass QgsDateTimeEdit
* rather than parent's one (QDateTimeEdit). If you consequently connect parent's
* dateTimeChanged signal and call dateTime() afterwards there is no warranty to
* have a proper NULL value handling.
*/
class GUI_EXPORT QgsDateTimeEdit : public QDateTimeEdit
{
@@ -63,6 +68,12 @@ class GUI_EXPORT QgsDateTimeEdit : public QDateTimeEdit
void setEmpty();

signals:

/**
* reimplements QDateTimeEdit::dateTimeChanged signal
* to properly handles NULL values.
* @param date the new date/time value.
*/
void dateTimeChanged( const QDateTime &date );

protected:

0 comments on commit 2528639

Please sign in to comment.
You can’t perform that action at this time.