summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-08-25 10:29:53 +0200
committerSimon Rettberg2022-08-25 10:29:53 +0200
commitbe2573d43e640e6a939610304fa79514df524db4 (patch)
tree2c0ecf3978ee51298b1acbeb65b73088e62de7c8
parentFix new TMDS-clock obeying EDID mode adding logic (diff)
downloadbeamergui-be2573d43e640e6a939610304fa79514df524db4.tar.gz
beamergui-be2573d43e640e6a939610304fa79514df524db4.tar.xz
beamergui-be2573d43e640e6a939610304fa79514df524db4.zip
Fix compile on recent Qt5 versions
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/widget.cpp1
-rw-r--r--src/xprivate.cpp1
-rw-r--r--src/xx.h2
4 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78e9c7c..900624d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-multichar")
set(CMAKE_CXX_STANDARD 11)
# Some cmake versions can't understand the CMAKE_CXX_STANDARD option above?
-SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
+SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-deprecated-declarations" )
#
# Qt5
diff --git a/src/widget.cpp b/src/widget.cpp
index ec0c4b3..bdac8f2 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -11,6 +11,7 @@
#include <QScreen>
#include <QThread>
#include <QMessageBox>
+#include <QResizeEvent>
/*
* Helper and static stuff
diff --git a/src/xprivate.cpp b/src/xprivate.cpp
index eb1cf59..afdf32d 100644
--- a/src/xprivate.cpp
+++ b/src/xprivate.cpp
@@ -3,6 +3,7 @@
#include <QDebug>
#include <QRegularExpression>
+#include <QFile>
// Put this here as we need it in the static error handler
static Display* __display;
diff --git a/src/xx.h b/src/xx.h
index ea1177a..43cb043 100644
--- a/src/xx.h
+++ b/src/xx.h
@@ -4,6 +4,8 @@
#include <QList>
#include <QString>
#include <QSize>
+#include <QPoint>
+#include <QObject>
struct ScreenInfo;
class XPrivate;