summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;