do not show F2 as short cuts for renaming on macOS as it doesn't work

This commit is contained in:
wmayer
2018-04-26 12:57:59 +02:00
parent 0599879e21
commit 900ec439d1
2 changed files with 4 additions and 0 deletions

View File

@@ -82,7 +82,9 @@ TreeWidget::TreeWidget(QWidget* parent)
this->relabelObjectAction = new QAction(this);
this->relabelObjectAction->setText(tr("Rename"));
this->relabelObjectAction->setStatusTip(tr("Rename object"));
#ifndef Q_OS_MAC
this->relabelObjectAction->setShortcut(Qt::Key_F2);
#endif
connect(this->relabelObjectAction, SIGNAL(triggered()),
this, SLOT(onRelabelObject()));