Skip to content
Permalink
Browse files

Declare metatype for QgsDate/DateTimeRange

  • Loading branch information
nyalldawson committed Mar 24, 2021
1 parent 894283b commit 047e13eb2292b1cc3a957713192bbb08f5396108
Showing with 6 additions and 0 deletions.
  1. +2 −0 python/core/auto_generated/qgsrange.sip.in
  2. +4 −0 src/core/qgsrange.h
@@ -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.
@@ -410,6 +411,7 @@ typedef QgsTemporalRange< QDateTime > QgsDateTimeRange;
@DOCSTRINGSTEMPLATE@.. versionadded:: 3.0
@DOCSTRINGSTEMPLATE@%End


/************************************************************************
* This file has been generated automatically from *
* *
@@ -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.
*
@@ -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.