Skip to content

Commit

Permalink
Add shortcut for Pivot local/global (P) #119
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 1, 2024
1 parent e0f4ffd commit a0c4c5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0c4c5e

Please sign in to comment.