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

@@ -133,7 +133,9 @@ Model::Model(QObject *parentIn, const Gui::Document &documentIn) : QGraphicsScen
renameAction = new QAction(this);
renameAction->setText(tr("Rename"));
renameAction->setStatusTip(tr("Rename object"));
#ifndef Q_OS_MAC
renameAction->setShortcut(Qt::Key_F2);
#endif
connect(renameAction, SIGNAL(triggered()), this, SLOT(onRenameSlot()));
editingFinishedAction = new QAction(this);