From a0c4c5eb23e2ca86f8d92bc27e7870237a21d9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 1 Mar 2024 20:57:45 +0100 Subject: [PATCH] Add shortcut for Pivot local/global (P) #119 --- src/app/GUI/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/GUI/mainwindow.cpp b/src/app/GUI/mainwindow.cpp index 12171c5c8..5510118f5 100755 --- a/src/app/GUI/mainwindow.cpp +++ b/src/app/GUI/mainwindow.cpp @@ -1641,6 +1641,9 @@ void MainWindow::setupToolBar() mLocalPivotAct = new QAction(mDocument.fLocalPivot ? QIcon::fromTheme("pivotLocal") : QIcon::fromTheme("pivotGlobal"), tr("Pivot Global / Local"), this); + mLocalPivotAct->setShortcut(QKeySequence(AppSupport::getSettings("shortcuts", + "localPivot", + "P").toString())); connect(mLocalPivotAct, &QAction::triggered, this, [this]() { mDocument.fLocalPivot = !mDocument.fLocalPivot;