Bump Qt4 version requirement to 4.8
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 2 Feb 2015 22:21:40 +0000 (23:21 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 2 Feb 2015 22:21:40 +0000 (23:21 +0100)
Qt 4.8 gained some support for C++11 features such as brace
initializers, which make some things much more convenient. As
this version was released more than three years ago, it should
be safe to finally bump our requirements accordingly. The core
was even fine with Qt 4.4 until now, and that was released a
whopping 7 years ago!

Requiring 4.8 will allow us to remove a bunch of old workarounds
as well, besides allowing for proper use of C++11 in the future.

CMakeLists.txt

index f6e9f74..69424f6 100644 (file)
@@ -139,11 +139,7 @@ if (USE_QT5)
     add_definitions(-DHAVE_QT5)
 else()
     message(STATUS "Building for Qt4...")
-    if (BUILD_GUI)
-        set(QT_MIN_VERSION "4.6.0")
-    else()
-        set(QT_MIN_VERSION "4.4.0")
-    endif()
+    set(QT_MIN_VERSION "4.8.0")
 
     # Select a Qt installation here, if you don't want to use system Qt
     if(QT_PATH)