Skip to content

Commit d90b50f

Browse files
Gustrynyalldawson
authored andcommittedNov 28, 2017
display apple cmd symbol instead of ctrl in the legend
1 parent 5652501 commit d90b50f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/gui/layertree/qgslayertreeviewdefaultactions.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ QAction *QgsLayerTreeViewDefaultActions::actionCheckAndAllChildren( QObject *par
128128
QgsLayerTreeNode *node = mView->currentNode();
129129
if ( !node || !QgsLayerTree::isGroup( node ) || node->isItemVisibilityCheckedRecursive() )
130130
return nullptr;
131+
#ifdef Q_OS_MACX
132+
QAction *a = new QAction( tr( "Check and all its children (⌘-click)" ), parent );
133+
#else
131134
QAction *a = new QAction( tr( "Check and all its children (Ctrl-click)" ), parent );
135+
#endif
132136
connect( a, &QAction::triggered, this, &QgsLayerTreeViewDefaultActions::checkAndAllChildren );
133137
return a;
134138
}
@@ -138,7 +142,11 @@ QAction *QgsLayerTreeViewDefaultActions::actionUncheckAndAllChildren( QObject *p
138142
QgsLayerTreeNode *node = mView->currentNode();
139143
if ( !node || !QgsLayerTree::isGroup( node ) || node->isItemVisibilityUncheckedRecursive() )
140144
return nullptr;
145+
#ifdef Q_OS_MACX
146+
QAction *a = new QAction( tr( "Uncheck and all its children (⌘-click)" ), parent );
147+
#else
141148
QAction *a = new QAction( tr( "Uncheck and all its children (Ctrl-click)" ), parent );
149+
#endif
142150
connect( a, &QAction::triggered, this, &QgsLayerTreeViewDefaultActions::uncheckAndAllChildren );
143151
return a;
144152
}

0 commit comments

Comments
 (0)
Please sign in to comment.