From ab72f9459501838f01f993c584c450997355678e Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 7 Aug 2018 17:47:50 +0200 Subject: [PATCH] Update the server_monitor example client to Qt5 --- development/lyxserver/server_monitor.cpp | 3 +++ development/lyxserver/server_monitor.h | 1 + development/lyxserver/server_monitor.pro | 2 ++ 3 files changed, 6 insertions(+) diff --git a/development/lyxserver/server_monitor.cpp b/development/lyxserver/server_monitor.cpp index 21eb4194fe..dc4f15d05a 100644 --- a/development/lyxserver/server_monitor.cpp +++ b/development/lyxserver/server_monitor.cpp @@ -41,6 +41,9 @@ #include #include #include +#if QT_VERSION >= 0x050000 +#include +#endif #include "server_monitor.h" diff --git a/development/lyxserver/server_monitor.h b/development/lyxserver/server_monitor.h index 32d035e448..5f8c628f98 100644 --- a/development/lyxserver/server_monitor.h +++ b/development/lyxserver/server_monitor.h @@ -13,6 +13,7 @@ #include #include +#include #include #include diff --git a/development/lyxserver/server_monitor.pro b/development/lyxserver/server_monitor.pro index c10e19dd98..934b176778 100644 --- a/development/lyxserver/server_monitor.pro +++ b/development/lyxserver/server_monitor.pro @@ -1,2 +1,4 @@ +CONFIG += console HEADERS += server_monitor.h SOURCES += server_monitor.cpp +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets