Skip to content

Commit

Permalink
Fixing APPLE-L shortcut clash + .dmg upgrade to Qt 5.15.2 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Feb 6, 2024
1 parent 9d8e8b7 commit e678c24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/qt/note_edit_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ NoteEditView::NoteEditView(QWidget* parent)
// signals
#ifdef __APPLE__
new QShortcut(
QKeySequence(Qt::CTRL+Qt::Key_L),
QKeySequence(Qt::CTRL+Qt::Key_D),
this, SLOT(slotSaveAndCloseEditor()));
#else
// TODO leak?
Expand Down
2 changes: 1 addition & 1 deletion app/src/qt/outline_header_edit_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OutlineHeaderEditView::OutlineHeaderEditView(QWidget* parent)
// signals
#ifdef __APPLE__
new QShortcut(
QKeySequence(Qt::CTRL+Qt::Key_L),
QKeySequence(Qt::CTRL+Qt::Key_D),
this, SLOT(slotSaveAndCloseEditor()));
#else
new QShortcut(
Expand Down
2 changes: 1 addition & 1 deletion app/src/qt/widgets/edit_buttons_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ EditButtonsPanel::EditButtonsPanel(MfWidgetMode mode, QWidget* parent)

rememberAndLeaveButton = new QPushButton{tr("Remember and Leave"), this};
#ifdef __APPLE__
rememberAndLeaveButton->setToolTip("L");
rememberAndLeaveButton->setToolTip("D"); // like DONE (⌘L used for link completion in N editor)
#else
rememberAndLeaveButton->setToolTip("Alt+Left");
#endif
Expand Down
7 changes: 3 additions & 4 deletions build/macos/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
export MINDFORGER_VERSION="2.0.0"

# aligned with Ubuntu 18.4
export QT_VERSION="5.9.9"
# export QT_VERSION="5.9.9"
# MindForger 1.52.0 released for macOS Qt version
# export QT_VERSION="5.11.0"
# BUG: unable to set security - images are NOT loaded with Qt 5.15.2
# export QT_VERSION="5.15.2"

# Qt 5.15.2 is LTS & works well on macOS BigSur 11.6
export QT_VERSION="5.15.2"

export PATH="/Users/dvorka/Qt/${QT_VERSION}/clang_64/bin":${PATH}

Expand Down

0 comments on commit e678c24

Please sign in to comment.