diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-13 20:04:49 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-17 22:25:50 +0200 |
commit | 8e9f1bcf18f5914ff448c640d492eaf24f436302 (patch) | |
tree | 4748e6d8c91f54f85cdafe7f52589fbf6bdd2bb9 | |
parent | 4b06fc53235ab7c16ec819dd7e9d1b89aad19db9 (diff) | |
download | PrismLauncher-8e9f1bcf18f5914ff448c640d492eaf24f436302.tar.gz PrismLauncher-8e9f1bcf18f5914ff448c640d492eaf24f436302.tar.bz2 PrismLauncher-8e9f1bcf18f5914ff448c640d492eaf24f436302.zip |
fix: remove unnecessary Qt version checks
-rw-r--r-- | launcher/Application.cpp | 4 | ||||
-rw-r--r-- | launcher/main.cpp | 2 | ||||
-rw-r--r-- | launcher/ui/pages/global/ExternalToolsPage.cpp | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index afb33a50..dc8a7b0d 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -223,9 +223,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) setApplicationName(BuildConfig.LAUNCHER_NAME); setApplicationDisplayName(BuildConfig.LAUNCHER_DISPLAYNAME); setApplicationVersion(BuildConfig.printableVersionString()); - #if (QT_VERSION >= QT_VERSION_CHECK(5,7,0)) - setDesktopFileName(BuildConfig.LAUNCHER_DESKTOPFILENAME); - #endif + setDesktopFileName(BuildConfig.LAUNCHER_DESKTOPFILENAME); startTime = QDateTime::currentDateTime(); // Don't quit on hiding the last window diff --git a/launcher/main.cpp b/launcher/main.cpp index 275fff32..85c5fdee 100644 --- a/launcher/main.cpp +++ b/launcher/main.cpp @@ -24,10 +24,8 @@ int main(int argc, char *argv[]) return 42; #endif -#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); -#endif #if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); diff --git a/launcher/ui/pages/global/ExternalToolsPage.cpp b/launcher/ui/pages/global/ExternalToolsPage.cpp index 693ca5c1..5ba0ebc2 100644 --- a/launcher/ui/pages/global/ExternalToolsPage.cpp +++ b/launcher/ui/pages/global/ExternalToolsPage.cpp @@ -54,9 +54,7 @@ ExternalToolsPage::ExternalToolsPage(QWidget *parent) : ui->setupUi(this); ui->tabWidget->tabBar()->hide(); - #if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) ui->jsonEditorTextBox->setClearButtonEnabled(true); - #endif ui->mceditLink->setOpenExternalLinks(true); ui->jvisualvmLink->setOpenExternalLinks(true); |