@@ -238,7 +238,7 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()
238
238
239
239
240
240
void QgsAppLayerTreeViewMenuProvider::addLegendLayerAction ( QAction* action, QString menu, QString id,
241
- QgsMapLayer::LayerType type, bool allLayers )
241
+ QgsMapLayer::LayerType type, bool allLayers )
242
242
{
243
243
mLegendLayerActionMap [type].append ( LegendLayerAction ( action, menu, id, allLayers ) );
244
244
}
@@ -271,11 +271,11 @@ void QgsAppLayerTreeViewMenuProvider::addLegendLayerActionForLayer( QAction* act
271
271
= mLegendLayerActionMap .find ( layer->type () );
272
272
for ( int i = 0 ; i < it->count (); i++ )
273
273
{
274
- if ( ( *it )[i].action == action )
275
- {
276
- ( *it )[i].layers .append ( layer );
277
- return ;
278
- }
274
+ if (( *it )[i].action == action )
275
+ {
276
+ ( *it )[i].layers .append ( layer );
277
+ return ;
278
+ }
279
279
}
280
280
}
281
281
@@ -288,7 +288,7 @@ void QgsAppLayerTreeViewMenuProvider::removeLegendLayerActionsForLayer( QgsMapLa
288
288
= mLegendLayerActionMap .find ( layer->type () );
289
289
for ( int i = 0 ; i < it->count (); i++ )
290
290
{
291
- ( *it )[i].layers .removeAll ( layer );
291
+ ( *it )[i].layers .removeAll ( layer );
292
292
}
293
293
}
294
294
@@ -297,12 +297,12 @@ QList< LegendLayerAction > QgsAppLayerTreeViewMenuProvider::legendLayerActions(
297
297
#ifdef QGISDEBUG
298
298
if ( mLegendLayerActionMap .contains ( type ) )
299
299
{
300
- QgsDebugMsg ( QString (" legendLayerActions for layers of type %1:" ).arg ( type ) );
300
+ QgsDebugMsg ( QString ( " legendLayerActions for layers of type %1:" ).arg ( type ) );
301
301
302
- foreach ( LegendLayerAction lyrAction, mLegendLayerActionMap [ type ] )
303
- {
304
- QgsDebugMsg ( QString (" %1/%2 - %3 layers" ).arg ( lyrAction.menu ).arg ( lyrAction.action ->text () ).arg ( lyrAction.layers .count ()) );
305
- }
302
+ foreach ( LegendLayerAction lyrAction, mLegendLayerActionMap [ type ] )
303
+ {
304
+ QgsDebugMsg ( QString ( " %1/%2 - %3 layers" ).arg ( lyrAction.menu ).arg ( lyrAction.action ->text () ).arg ( lyrAction.layers .count () ) );
305
+ }
306
306
}
307
307
#endif
308
308
0 commit comments