Skip to content
Permalink
Browse files

Add sip casting for QgsTemporalNavigationObject

  • Loading branch information
github-actions authored and nyalldawson committed Sep 2, 2020
1 parent 317d4dd commit 16acec7e65b373e04ff62331e58c762b6059fc9a
Showing with 34 additions and 1 deletion.
  1. +14 −0 python/core/auto_generated/qgstemporalcontroller.sip.in
  2. +20 −1 src/core/qgstemporalcontroller.h
@@ -10,6 +10,10 @@



%ModuleHeaderCode
#include <qgstemporalnavigationobject.h>
%End

class QgsTemporalController : QObject
{
%Docstring
@@ -21,6 +25,16 @@ updates of the objects temporal range.

%TypeHeaderCode
#include "qgstemporalcontroller.h"
%End
%ConvertToSubClassCode
if ( qobject_cast<QgsTemporalNavigationObject *>( sipCpp ) )
{
sipType = sipType_QgsTemporalNavigationObject;
}
else
{
sipType = 0;
}
%End
public:

@@ -23,6 +23,13 @@
#include "qgsrange.h"
#include <QObject>


#ifdef SIP_RUN
% ModuleHeaderCode
#include <qgstemporalnavigationobject.h>
% End
#endif

/**
* \class QgsTemporalController
* \ingroup core
@@ -31,11 +38,23 @@
*
* \since QGIS 3.14
*/

class CORE_EXPORT QgsTemporalController : public QObject
{
Q_OBJECT

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
if ( qobject_cast<QgsTemporalNavigationObject *>( sipCpp ) )
{
sipType = sipType_QgsTemporalNavigationObject;
}
else
{
sipType = 0;
}
SIP_END
#endif

public:

/**

0 comments on commit 16acec7

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