diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index 73de094d8..e5731d52a 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -545,7 +545,7 @@ void AutoType::performGlobalAutoType(const QList>& dbLi void AutoType::restoreWindowState() { -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS if (getMainWindow()) { if (m_windowState == WindowState::Minimized) { getMainWindow()->showMinimized(); diff --git a/src/autotype/AutoTypeSelectDialog.cpp b/src/autotype/AutoTypeSelectDialog.cpp index 53d9e3da5..f3c94b3ea 100644 --- a/src/autotype/AutoTypeSelectDialog.cpp +++ b/src/autotype/AutoTypeSelectDialog.cpp @@ -355,7 +355,7 @@ void AutoTypeSelectDialog::buildActionMenu() submitAutoTypeMatch(match); }); -#if defined(Q_OS_WIN) || defined(Q_OS_MAC) +#if defined(Q_OS_WIN) || defined(Q_OS_MACOS) auto typeVirtualAction = new QAction(icons()->icon("auto-type"), tr("Use Virtual Keyboard"), nullptr); m_actionMenu->insertAction(copyUsernameAction, typeVirtualAction); typeVirtualAction->setShortcut(Qt::CTRL | Qt::Key_5); diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index c7a0d8e5c..8c93c7cb1 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -2159,7 +2159,7 @@ void MainWindow::initActionCollection() // Prevent conflicts with global Mac shortcuts (force Control on all platforms) // Note: Qt::META means Ctrl on Mac. -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS ac->setDefaultShortcut(m_ui->actionEntryAddToAgent, Qt::META | Qt::Key_H); ac->setDefaultShortcut(m_ui->actionEntryRemoveFromAgent, Qt::META | Qt::SHIFT | Qt::Key_H); #endif diff --git a/src/gui/PasswordWidget.cpp b/src/gui/PasswordWidget.cpp index d1047ae33..d94a146cc 100644 --- a/src/gui/PasswordWidget.cpp +++ b/src/gui/PasswordWidget.cpp @@ -53,7 +53,7 @@ PasswordWidget::PasswordWidget(QWidget* parent) setEchoMode(QLineEdit::Password); // Prevent conflicts with global Mac shortcuts (force Control on all platforms) -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS constexpr auto modifier = Qt::MetaModifier; #else constexpr auto modifier = Qt::ControlModifier; diff --git a/src/gui/styles/base/BaseStyle.cpp b/src/gui/styles/base/BaseStyle.cpp index 47efdd532..9b41f4cca 100644 --- a/src/gui/styles/base/BaseStyle.cpp +++ b/src/gui/styles/base/BaseStyle.cpp @@ -724,7 +724,7 @@ namespace Phantom qreal dpiScaled(qreal value) { -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS // On mac the DPI is always 72 so we should not scale it return value; #else @@ -4579,7 +4579,7 @@ int BaseStyle::styleHint(StyleHint hint, return 1; case SH_Menu_SupportsSections: return 0; -#ifndef Q_OS_MAC +#ifndef Q_OS_MACOS case SH_MenuBar_AltKeyNavigation: return 1; #endif @@ -4610,7 +4610,7 @@ int BaseStyle::styleHint(StyleHint hint, case SH_ItemView_ScrollMode: return QAbstractItemView::ScrollPerPixel; case SH_ScrollBar_ContextMenu: -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS return 0; #else return 1; @@ -4676,7 +4676,7 @@ int BaseStyle::styleHint(StyleHint hint, return 1; case SH_Menu_SubMenuResetWhenReenteringParent: return 0; -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS case SH_Menu_FlashTriggeredItem: return 1; case SH_Menu_FadeOutOnHide: diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index 2d6ee1d3f..f1258c531 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -86,7 +86,6 @@ int main(int argc, char* argv[]) app.setQuitOnLastWindowClosed(false); app.setAttribute(Qt::AA_Use96Dpi, true); app.applyTheme(); - QTEST_DISABLE_KEYPAD_NAVIGATION TestGui tc; QTEST_SET_MAIN_SOURCE_PATH return QTest::qExec(&tc, argc, argv); @@ -969,7 +968,7 @@ void TestGui::testPasswordEntryEntropy() QVERIFY(passwordEdit); QTest::mouseClick(passwordEdit, Qt::LeftButton); -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS QTest::keyClick(passwordEdit, Qt::Key_G, Qt::MetaModifier); #else QTest::keyClick(passwordEdit, Qt::Key_G, Qt::ControlModifier); @@ -1030,7 +1029,7 @@ void TestGui::testDicewareEntryEntropy() QVERIFY(passwordEdit); QTest::mouseClick(passwordEdit, Qt::LeftButton); -#ifdef Q_OS_MAC +#ifdef Q_OS_MACOS QTest::keyClick(passwordEdit, Qt::Key_G, Qt::MetaModifier); #else QTest::keyClick(passwordEdit, Qt::Key_G, Qt::ControlModifier); diff --git a/tests/gui/TestGuiBrowser.cpp b/tests/gui/TestGuiBrowser.cpp index ed77a2701..2d3d4d139 100644 --- a/tests/gui/TestGuiBrowser.cpp +++ b/tests/gui/TestGuiBrowser.cpp @@ -49,7 +49,6 @@ int main(int argc, char* argv[]) app.setQuitOnLastWindowClosed(false); app.setAttribute(Qt::AA_Use96Dpi, true); app.applyTheme(); - QTEST_DISABLE_KEYPAD_NAVIGATION TestGuiBrowser tc; QTEST_SET_MAIN_SOURCE_PATH return QTest::qExec(&tc, argc, argv); diff --git a/tests/gui/TestGuiFdoSecrets.cpp b/tests/gui/TestGuiFdoSecrets.cpp index 301291d0e..dd1e51f4f 100644 --- a/tests/gui/TestGuiFdoSecrets.cpp +++ b/tests/gui/TestGuiFdoSecrets.cpp @@ -56,7 +56,6 @@ int main(int argc, char* argv[]) app.setQuitOnLastWindowClosed(false); app.setAttribute(Qt::AA_Use96Dpi, true); app.applyTheme(); - QTEST_DISABLE_KEYPAD_NAVIGATION TestGuiFdoSecrets tc; QTEST_SET_MAIN_SOURCE_PATH return QTest::qExec(&tc, argc, argv);