Skip to content

Commit

Permalink
Declare metatype for QgsDate/DateTimeRange
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 24, 2021
1 parent 894283b commit 047e13e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/auto_generated/qgsrange.sip.in
Expand Up @@ -396,6 +396,7 @@ typedef QgsTemporalRange< QDate > QgsDateRange;
@DOCSTRINGSTEMPLATE@.. versionadded:: 3.0
@DOCSTRINGSTEMPLATE@%End


typedef QgsTemporalRange< QDateTime > QgsDateTimeRange;
@DOCSTRINGSTEMPLATE@%Docstring
@DOCSTRINGSTEMPLATE@:py:class:`QgsRange` which stores a range of date times.
Expand All @@ -410,6 +411,7 @@ typedef QgsTemporalRange< QDateTime > QgsDateTimeRange;
@DOCSTRINGSTEMPLATE@.. versionadded:: 3.0
@DOCSTRINGSTEMPLATE@%End


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
4 changes: 4 additions & 0 deletions src/core/qgsrange.h
Expand Up @@ -633,6 +633,8 @@ class QgsTemporalRange
*/
typedef QgsTemporalRange< QDate > QgsDateRange SIP_DOC_TEMPLATE;

Q_DECLARE_METATYPE( QgsDateRange )

/**
* QgsRange which stores a range of date times.
*
Expand All @@ -645,4 +647,6 @@ typedef QgsTemporalRange< QDate > QgsDateRange SIP_DOC_TEMPLATE;
*/
typedef QgsTemporalRange< QDateTime > QgsDateTimeRange SIP_DOC_TEMPLATE;

Q_DECLARE_METATYPE( QgsDateTimeRange )

#endif // QGSRANGE_H

0 comments on commit 047e13e

Please sign in to comment.