22
22
#include " qgsvectorlayer.h"
23
23
#include " qgsrasterlayer.h"
24
24
#include " qgspointcloudlayer.h"
25
+ #include " qgsvectortilelayer.h"
25
26
#include " qgsmeshlayer.h"
26
27
#include " qgisapp.h"
27
28
#include " qgsapplication.h"
@@ -102,7 +103,8 @@ void QgsLayerTreeViewIndicatorProvider::onLayerLoaded()
102
103
if ( !( qobject_cast<QgsVectorLayer *>( layerNode->layer () ) ||
103
104
qobject_cast<QgsRasterLayer *>( layerNode->layer () ) ||
104
105
qobject_cast<QgsMeshLayer *>( layerNode->layer () ) ||
105
- qobject_cast<QgsPointCloudLayer *>( layerNode->layer () ) ) )
106
+ qobject_cast<QgsPointCloudLayer *>( layerNode->layer () ) ||
107
+ qobject_cast<QgsVectorTileLayer *>( layerNode->layer () ) ) )
106
108
return ;
107
109
108
110
if ( QgsMapLayer *mapLayer = layerNode->layer () )
@@ -129,7 +131,8 @@ void QgsLayerTreeViewIndicatorProvider::connectSignals( QgsMapLayer *layer )
129
131
if ( !( qobject_cast<QgsVectorLayer *>( layer )
130
132
|| qobject_cast<QgsRasterLayer *>( layer )
131
133
|| qobject_cast<QgsMeshLayer *>( layer )
132
- || qobject_cast<QgsPointCloudLayer *>( layer ) ) )
134
+ || qobject_cast<QgsPointCloudLayer *>( layer )
135
+ || qobject_cast<QgsVectorTileLayer *>( layer ) ) )
133
136
return ;
134
137
135
138
QgsMapLayer *mapLayer = layer;
@@ -141,7 +144,8 @@ void QgsLayerTreeViewIndicatorProvider::disconnectSignals( QgsMapLayer *layer )
141
144
if ( !( qobject_cast<QgsVectorLayer *>( layer )
142
145
|| qobject_cast<QgsRasterLayer *>( layer )
143
146
|| qobject_cast<QgsMeshLayer *>( layer )
144
- || qobject_cast<QgsPointCloudLayer *>( layer ) ) )
147
+ || qobject_cast<QgsPointCloudLayer *>( layer )
148
+ || qobject_cast<QgsVectorTileLayer *>( layer ) ) )
145
149
return ;
146
150
QgsMapLayer *mapLayer = layer;
147
151
disconnect ( mapLayer, &QgsMapLayer::dataSourceChanged, this , &QgsLayerTreeViewIndicatorProvider::onLayerChanged );
0 commit comments