From 95ffeadcf76cd7ef0f929b7e0c5f3e3e1dbb9898 Mon Sep 17 00:00:00 2001 From: Vilas Chitrakaran Date: Fri, 23 Aug 2019 13:21:38 +0100 Subject: [PATCH] compiles for Qt5 in Kde Neon 5.16.4 --- CMakeLists.txt | 2 +- lib/jkqtcommon/jkqtphighrestimer.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbef17eb1a..bff7f7957a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ if (NOT CMAKE_INSTALL_INCLUDEDIR) endif() -find_package(Qt5 5.0 REQUIRED Core Gui Widgets PrintSupport Svg Xml OpenGl) +find_package(Qt5 5.0 REQUIRED Core Gui Widgets PrintSupport Svg Xml OpenGL) diff --git a/lib/jkqtcommon/jkqtphighrestimer.h b/lib/jkqtcommon/jkqtphighrestimer.h index 257019d7e3..1d16b60c92 100644 --- a/lib/jkqtcommon/jkqtphighrestimer.h +++ b/lib/jkqtcommon/jkqtphighrestimer.h @@ -132,12 +132,11 @@ class JKQTCOMMON_LIB_EXPORT JKQTPHighResTimer { #ifdef __WINDOWS__ /** \brief internal: time stamp of the last call of start() */ LARGE_INTEGER last; - - /** \brief internal: timer frequency */ - double freq; #else struct timeval last; #endif + /** \brief internal: timer frequency */ + double freq; public: /** \brief class constructor. */ JKQTPHighResTimer();