From kde-commits Sun Sep 16 07:26:11 2018 From: Alexander Semke Date: Sun, 16 Sep 2018 07:26:11 +0000 To: kde-commits Subject: [labplot] /: Incresed the minimum Qt verion to 5.6 in order to use high dpi scaling on default. Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=153708278421101 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 d= efault. 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 o= r 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 s= imilar) = 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"); =20