From e8cc0fa3823cb1f216c1c1b63c4845d5f8916b79 Mon Sep 17 00:00:00 2001 From: Joe Ferris Date: Fri, 10 Apr 2015 13:28:14 -0400 Subject: [PATCH] Warn when using Qt 4 We plan on removing support for Qt 4 in the next major release. This allows us to give users a heads-up in the next minor release. --- src/Server.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Server.cpp b/src/Server.cpp index 9dc1536..434c5b6 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -9,6 +9,13 @@ Server::Server(QObject *parent) : QObject(parent) { } bool Server::start() { +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + QTextStream(stderr) << + "WARNING: The next major version of capybara-webkit " << + "will require at least version 5.0 of Qt. " << + "You're using version " << QT_VERSION_STR << "." << endl; +#endif + connect(m_tcp_server, SIGNAL(newConnection()), this, SLOT(handleConnection())); return m_tcp_server->listen(QHostAddress::LocalHost, 0); }