[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [labplot] /: Incresed the minimum Qt verion to 5.6 in order to use high dpi scaling on default.
From: Alexander Semke <null () kde ! org>
Date: 2018-09-16 7:26:11
Message-ID: E1g1RRb-0004Ig-Nw () code ! kde ! org
[Download RAW message or body]
Git commit 25a8be78aa4956e4a479604b40c5b7e2b25ff66f by Alexander Semke.
Committed on 16/09/2018 at 07:25.
Pushed by asemke into branch 'master'.
Incresed the minimum Qt verion to 5.6 in order to use high dpi scaling on default.
M +1 -1 CMakeLists.txt
M +1 -1 INSTALL
M +2 -0 src/kdefrontend/LabPlot.cpp
https://commits.kde.org/labplot/25a8be78aa4956e4a479604b40c5b7e2b25ff66f
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 320443f5..4671de38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,13 +8,13 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
+set(QT_MINIMUM_VERSION 5.6.0)
set(KF5_MIN_VERSION "5.16.0")
find_package(ECM 1.3.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
# build type: "release", "debug", "debugfull"
string (TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
-
find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE REQUIRED COMPONENTS
Concurrent
Gui
diff --git a/INSTALL b/INSTALL
index 05dd97b5..3e2bd029 100644
--- a/INSTALL
+++ b/INSTALL
@@ -3,7 +3,7 @@ To compile LabPlot following packages are required:
* ECM (extra cmake modules)
* KDE Frameworks 5.16.0 or higher (including the devel-package),
optional 5.28.0 or higher for syntax highlighting
- * Qt version 5.4.2 or higher (including the devel-package, libqt5-devel or similar)
+ * Qt version 5.6 or higher (including the devel-package, libqt5-devel or similar)
* GSL version 1.15 or higher (including the devel-package, gsl-devel or similar)
optional
diff --git a/src/kdefrontend/LabPlot.cpp b/src/kdefrontend/LabPlot.cpp
index 5c81b535..e9322735 100644
--- a/src/kdefrontend/LabPlot.cpp
+++ b/src/kdefrontend/LabPlot.cpp
@@ -50,6 +50,8 @@
#include "backend/lib/macros.h"
int main (int argc, char *argv[]) {
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("labplot2");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic