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