Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add sip casting for QgsTemporalNavigationObject
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Sep 2, 2020
1 parent 317d4dd commit 16acec7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
14 changes: 14 additions & 0 deletions python/core/auto_generated/qgstemporalcontroller.sip.in
Expand Up @@ -10,6 +10,10 @@



%ModuleHeaderCode
#include <qgstemporalnavigationobject.h>
%End

class QgsTemporalController : QObject
{
%Docstring
Expand All @@ -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:

Expand Down
21 changes: 20 additions & 1 deletion src/core/qgstemporalcontroller.h
Expand Up @@ -23,6 +23,13 @@
#include "qgsrange.h"
#include <QObject>


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

/**
* \class QgsTemporalController
* \ingroup core
Expand All @@ -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:

/**
Expand Down

0 comments on commit 16acec7

Please sign in to comment.