mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
Add missing sip cast
This commit is contained in:
parent
c549f43bf9
commit
6c63043138
@ -22,6 +22,12 @@ layers and text filtering.
|
|||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include "qgslayertreeview.h"
|
#include "qgslayertreeview.h"
|
||||||
|
%End
|
||||||
|
%ConvertToSubClassCode
|
||||||
|
if ( qobject_cast<QgsLayerTreeProxyModel *>( sipCpp ) != nullptr )
|
||||||
|
sipType = sipType_QgsLayerTreeProxyModel;
|
||||||
|
else
|
||||||
|
sipType = nullptr;
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsLayerTreeProxyModel( QgsLayerTreeModel *treeModel, QObject *parent );
|
QgsLayerTreeProxyModel( QgsLayerTreeModel *treeModel, QObject *parent );
|
||||||
|
@ -22,6 +22,12 @@ layers and text filtering.
|
|||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include "qgslayertreeview.h"
|
#include "qgslayertreeview.h"
|
||||||
|
%End
|
||||||
|
%ConvertToSubClassCode
|
||||||
|
if ( qobject_cast<QgsLayerTreeProxyModel *>( sipCpp ) != nullptr )
|
||||||
|
sipType = sipType_QgsLayerTreeProxyModel;
|
||||||
|
else
|
||||||
|
sipType = nullptr;
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
QgsLayerTreeProxyModel( QgsLayerTreeModel *treeModel, QObject *parent );
|
QgsLayerTreeProxyModel( QgsLayerTreeModel *treeModel, QObject *parent );
|
||||||
|
@ -45,6 +45,15 @@ class QgsLayerTreeFilterProxyModel;
|
|||||||
*/
|
*/
|
||||||
class GUI_EXPORT QgsLayerTreeProxyModel : public QSortFilterProxyModel
|
class GUI_EXPORT QgsLayerTreeProxyModel : public QSortFilterProxyModel
|
||||||
{
|
{
|
||||||
|
#ifdef SIP_RUN
|
||||||
|
SIP_CONVERT_TO_SUBCLASS_CODE
|
||||||
|
if ( qobject_cast<QgsLayerTreeProxyModel *>( sipCpp ) != nullptr )
|
||||||
|
sipType = sipType_QgsLayerTreeProxyModel;
|
||||||
|
else
|
||||||
|
sipType = nullptr;
|
||||||
|
SIP_END
|
||||||
|
#endif
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user