diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ set(PROJECT_VERSION_MAJOR 5) cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) -set(QT_MIN_VERSION "5.5.0") +set(QT_MIN_VERSION "5.7.0") set(KF5_MIN_VERSION "5.26.0") set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} ) diff --git a/autotests/integration/kwin_wayland_test.h b/autotests/integration/kwin_wayland_test.h --- a/autotests/integration/kwin_wayland_test.h +++ b/autotests/integration/kwin_wayland_test.h @@ -177,10 +177,6 @@ return QTest::qExec(&tc, argc, argv); \ } -#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) #define WAYLANDTEST_MAIN(TestObject) WAYLANDTEST_MAIN_HELPER(TestObject, QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling) ) -#else -#define WAYLANDTEST_MAIN(TestObject) WAYLANDTEST_MAIN_HELPER(TestObject,) -#endif #endif diff --git a/autotests/test_screen_edges.cpp b/autotests/test_screen_edges.cpp --- a/autotests/test_screen_edges.cpp +++ b/autotests/test_screen_edges.cpp @@ -297,13 +297,6 @@ // approach windows for edges not created as screen too small s->updateLayout(); auto edgeWindows = s->windows(); -#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) -#if (QT_VERSION < QT_VERSION_CHECK(5, 6, 1)) - if (!Xcb::Extensions::self()->isRandrAvailable()) { - QEXPECT_FAIL("", "Broken on no xrandr systems in Qt 5.5", Abort); - } -#endif -#endif QCOMPARE(edgeWindows.size(), 12); auto testWindowGeometry = [&](int index) { @@ -422,13 +415,6 @@ auto it = std::find_if(edges.constBegin(), edges.constEnd(), [](Edge *e) { return e->isScreenEdge() && e->isLeft() && e->approachGeometry().bottom() < 768; }); -#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) -#if (QT_VERSION < QT_VERSION_CHECK(5, 6, 1)) - if (!Xcb::Extensions::self()->isRandrAvailable()) { - QEXPECT_FAIL("", "Broken on no xrandr systems in Qt 5.5", Abort); - } -#endif -#endif QVERIFY(it != edges.constEnd()); xcb_enter_notify_event_t event; diff --git a/keyboard_input.cpp b/keyboard_input.cpp --- a/keyboard_input.cpp +++ b/keyboard_input.cpp @@ -68,9 +68,7 @@ qCDebug(KWIN_XKB) << "XKB:" << buf; break; case XKB_LOG_LEVEL_INFO: -#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) qCInfo(KWIN_XKB) << "XKB:" << buf; -#endif break; case XKB_LOG_LEVEL_WARNING: qCWarning(KWIN_XKB) << "XKB:" << buf; diff --git a/libinput/context.cpp b/libinput/context.cpp --- a/libinput/context.cpp +++ b/libinput/context.cpp @@ -44,9 +44,7 @@ qCDebug(KWIN_LIBINPUT) << "Libinput:" << buf; break; case LIBINPUT_LOG_PRIORITY_INFO: -#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) qCInfo(KWIN_LIBINPUT) << "Libinput:" << buf; -#endif break; case LIBINPUT_LOG_PRIORITY_ERROR: default: diff --git a/main_wayland.cpp b/main_wayland.cpp --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -468,9 +468,7 @@ qunsetenv("QT_DEVICE_PIXEL_RATIO"); qputenv("QT_IM_MODULE", "qtvirtualkeyboard"); qputenv("QSG_RENDER_LOOP", "basic"); -#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); -#endif KWin::ApplicationWayland a(argc, argv); a.setupTranslator(); // reset QT_QPA_PLATFORM to a sane value for any processes started from KWin diff --git a/main_x11.cpp b/main_x11.cpp --- a/main_x11.cpp +++ b/main_x11.cpp @@ -406,9 +406,7 @@ setenv("QT_QPA_PLATFORM", "xcb", true); qunsetenv("QT_DEVICE_PIXEL_RATIO"); -#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); -#endif KWin::ApplicationX11 a(argc, argv); a.setupTranslator(); diff --git a/plugins/qpa/abstractplatformcontext.h b/plugins/qpa/abstractplatformcontext.h --- a/plugins/qpa/abstractplatformcontext.h +++ b/plugins/qpa/abstractplatformcontext.h @@ -39,11 +39,7 @@ void doneCurrent() override; QSurfaceFormat format() const override; bool isValid() const override; -#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0)) - QFunctionPointer getProcAddress(const QByteArray &procName) override; -#else QFunctionPointer getProcAddress(const char *procName) override; -#endif protected: EGLDisplay eglDisplay() const { diff --git a/plugins/qpa/abstractplatformcontext.cpp b/plugins/qpa/abstractplatformcontext.cpp --- a/plugins/qpa/abstractplatformcontext.cpp +++ b/plugins/qpa/abstractplatformcontext.cpp @@ -119,17 +119,10 @@ return m_format; } -#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0)) -QFunctionPointer AbstractPlatformContext::getProcAddress(const QByteArray &procName) -{ - return eglGetProcAddress(procName.constData()); -} -#else QFunctionPointer AbstractPlatformContext::getProcAddress(const char *procName) { return eglGetProcAddress(procName); } -#endif bool AbstractPlatformContext::isValid() const { diff --git a/plugins/qpa/integration.cpp b/plugins/qpa/integration.cpp --- a/plugins/qpa/integration.cpp +++ b/plugins/qpa/integration.cpp @@ -227,9 +227,7 @@ void Integration::createWaylandOutput(quint32 name, quint32 version) { if (m_dummyScreen) { -#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) destroyScreen(m_dummyScreen); -#endif m_dummyScreen = nullptr; } using namespace KWayland::Client; diff --git a/qml/virtualkeyboard/main-enterprise.qml b/qml/virtualkeyboard/main-enterprise.qml deleted file mode 100644 --- a/qml/virtualkeyboard/main-enterprise.qml +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************** - KWin - the KDE window manager - This file is part of the KDE project. - -Copyright (C) 2016 Martin Gräßlin - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*********************************************************************/ -import QtQuick 2.0 -import QtQuick.Enterprise.VirtualKeyboard 2.0 - -Item { - id: window - InputPanel { - id: inputPanel - objectName: "inputPanel" - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - } -} diff --git a/virtualkeyboard.cpp b/virtualkeyboard.cpp --- a/virtualkeyboard.cpp +++ b/virtualkeyboard.cpp @@ -72,12 +72,8 @@ m_inputWindow->setResizeMode(QQuickView::SizeRootObjectToView); m_inputWindow->setSource(QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral(KWIN_NAME "/virtualkeyboard/main.qml")))); if (m_inputWindow->status() != QQuickView::Status::Ready) { - // try enterprise - m_inputWindow->setSource(QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral(KWIN_NAME "/virtualkeyboard/main-enterprise.qml")))); - if (m_inputWindow->status() != QQuickView::Status::Ready) { - m_inputWindow.reset(); - return; - } + m_inputWindow.reset(); + return; } m_inputWindow->setProperty("__kwin_input_method", true);