Skip to content
Permalink
Browse files

display apple cmd symbol instead of ctrl in the legend

  • Loading branch information
Gustry authored and nyalldawson committed Nov 28, 2017
1 parent 5652501 commit d90b50fbbce723d1a3ade116d1af07f90ba63def
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/gui/layertree/qgslayertreeviewdefaultactions.cpp
@@ -128,7 +128,11 @@ QAction *QgsLayerTreeViewDefaultActions::actionCheckAndAllChildren( QObject *par
QgsLayerTreeNode *node = mView->currentNode();
if ( !node || !QgsLayerTree::isGroup( node ) || node->isItemVisibilityCheckedRecursive() )
return nullptr;
#ifdef Q_OS_MACX
QAction *a = new QAction( tr( "Check and all its children (⌘-click)" ), parent );
#else
QAction *a = new QAction( tr( "Check and all its children (Ctrl-click)" ), parent );
#endif
connect( a, &QAction::triggered, this, &QgsLayerTreeViewDefaultActions::checkAndAllChildren );
return a;
}
@@ -138,7 +142,11 @@ QAction *QgsLayerTreeViewDefaultActions::actionUncheckAndAllChildren( QObject *p
QgsLayerTreeNode *node = mView->currentNode();
if ( !node || !QgsLayerTree::isGroup( node ) || node->isItemVisibilityUncheckedRecursive() )
return nullptr;
#ifdef Q_OS_MACX
QAction *a = new QAction( tr( "Uncheck and all its children (⌘-click)" ), parent );
#else
QAction *a = new QAction( tr( "Uncheck and all its children (Ctrl-click)" ), parent );
#endif
connect( a, &QAction::triggered, this, &QgsLayerTreeViewDefaultActions::uncheckAndAllChildren );
return a;
}

0 comments on commit d90b50f

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