Skip to content

Commit 43a0938

Browse files
timlinuxnyalldawson
authored andcommittedMay 18, 2017
Make locator bar shortcut hint show Cmd-K on MacOS (#4583)
1 parent 8997231 commit 43a0938

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/locator/qgslocatorwidget.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ QgsLocatorWidget::QgsLocatorWidget( QWidget *parent )
3434
, mResultsView( new QgsLocatorResultsView( this ) )
3535
{
3636
mLineEdit->setShowClearButton( true );
37+
#ifdef Q_OS_MACX
38+
mLineEdit->setPlaceholderText( trUtf8( "Type to locate (⌘K)" ) );
39+
#elif
3740
mLineEdit->setPlaceholderText( tr( "Type to locate (Ctrl+K)" ) );
41+
#endif
3842

3943
int placeholderMinWidth = mLineEdit->fontMetrics().width( mLineEdit->placeholderText() );
4044
int minWidth = qMax( 200, ( int )( placeholderMinWidth * 1.3 ) );

0 commit comments

Comments
 (0)
Please sign in to comment.