Navigation Menu

Skip to content

Commit

Permalink
display apple cmd symbol instead of ctrl in the legend
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Nov 28, 2017
1 parent 5652501 commit d90b50f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/layertree/qgslayertreeviewdefaultactions.cpp
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit d90b50f

Please sign in to comment.