Skip to content
Permalink
Browse files

Add missing cast code

  • Loading branch information
nyalldawson committed Mar 13, 2020
1 parent ee2b94f commit e071d2ddb433b6783178000805628501baaf3919
@@ -10,7 +10,6 @@




class QgsDataProviderTemporalCapabilities
{
%Docstring
@@ -21,6 +20,16 @@ Base class for handling properties relating to a data provider's temporal capabi

%TypeHeaderCode
#include "qgsdataprovidertemporalcapabilities.h"
%End
%ConvertToSubClassCode
if ( dynamic_cast<QgsRasterDataProviderTemporalCapabilities *>( sipCpp ) )
{
sipType = sipType_QgsRasterDataProviderTemporalCapabilities;
}
else
{
sipType = 0;
}
%End
public:

@@ -25,6 +25,16 @@ how an individual QgsMapLayer behaves in a temporal context, e.g. while animatin

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

@@ -30,9 +30,22 @@
*
* \since QGIS 3.14
*/

class CORE_EXPORT QgsDataProviderTemporalCapabilities
{

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
if ( dynamic_cast<QgsRasterDataProviderTemporalCapabilities *>( sipCpp ) )
{
sipType = sipType_QgsRasterDataProviderTemporalCapabilities;
}
else
{
sipType = 0;
}
SIP_END
#endif

public:

/**
@@ -43,6 +43,19 @@ class CORE_EXPORT QgsMapLayerTemporalProperties : public QgsTemporalProperty
{
Q_OBJECT

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

public:

/**

0 comments on commit e071d2d

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