-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #791 from matty0ung/3.0.11
Fix for text in side tabs not displaying on Mac
- Loading branch information
Showing
4 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Application.cpp is part of Brewtarget, and is Copyright the following | ||
* authors 2009-2022 | ||
* authors 2009-2024 | ||
* - A.J. Drobnich <[email protected]> | ||
* - Dan Cavanagh <[email protected]> | ||
* - Matt Young <[email protected]> | ||
|
@@ -326,7 +326,7 @@ namespace { | |
"constant for resource dir:" << CONFIG_DATA_DIR; | ||
path = QString(CONFIG_DATA_DIR); | ||
} | ||
#elif defined(Q_OS_MAC) | ||
#elif defined(Q_OS_MACOS) | ||
// === Mac === | ||
// We should be inside an app bundle. | ||
path += "../Resources/"; | ||
|
@@ -345,7 +345,7 @@ namespace { | |
} | ||
|
||
const QDir Application::getConfigDir() { | ||
#if defined(Q_OS_LINUX) || defined(Q_OS_MAC) // Linux OS or Mac OS. | ||
#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) // Linux OS or Mac OS. | ||
QDir dir; | ||
QFileInfo fileInfo; | ||
|
||
|
@@ -388,7 +388,7 @@ QDir Application::getUserDataDir() { | |
} | ||
|
||
QDir Application::getDefaultUserDataDir() { | ||
#if defined(Q_OS_LINUX) || defined(Q_OS_MAC) // Linux OS or Mac OS.#if defined(Q_OS_LINUX) || defined(Q_OS_MAC) // Linux OS or Mac OS. | ||
#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) // Linux OS or Mac OS | ||
return getConfigDir(); | ||
#elif defined(Q_OS_WIN) // Windows OS. | ||
// On Windows the Programs directory is normally not writable so we need to get the appData path from the environment instead. | ||
|
@@ -441,7 +441,7 @@ bool Application::initialize() { | |
|
||
Localization::loadTranslations(); // Do internationalization. | ||
|
||
#if defined(Q_OS_MAC) | ||
#if defined(Q_OS_MACOS) | ||
qt_set_sequence_auto_mnemonic(true); // turns on Mac Keyboard shortcuts | ||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* MainWindow.cpp is part of Brewtarget, and is Copyright the following | ||
* authors 2009-2023 | ||
* authors 2009-2024 | ||
* - A.J. Drobnich <[email protected]> | ||
* - Dan Cavanagh <[email protected]> | ||
* - David Grundberg <[email protected]> | ||
|
@@ -368,8 +368,8 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), pimpl{std::make_u | |
// Stop things looking ridiculously tiny on high DPI displays | ||
this->setSizesInPixelsBasedOnDpi(); | ||
|
||
// Horizontal tabs, please | ||
tabWidget_Trees->tabBar()->setStyle(new BtHorizontalTabs); | ||
// Horizontal tabs, please -- even on Mac OS, as the tabs contain square icons | ||
tabWidget_Trees->tabBar()->setStyle(new BtHorizontalTabs(true)); | ||
|
||
/* PLEASE DO NOT REMOVE. | ||
This code is left here, commented out, intentionally. The only way I can | ||
|