From 2908a02d924324cc13aac037c41613cf16c5dfdc Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 8 Apr 2021 22:32:12 +0200 Subject: [PATCH] It's deprecated in qt5.15 --- src/wayland/autotests/client/test_wayland_seat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/autotests/client/test_wayland_seat.cpp b/src/wayland/autotests/client/test_wayland_seat.cpp index 9821220f1a..36b9a8bc23 100644 --- a/src/wayland/autotests/client/test_wayland_seat.cpp +++ b/src/wayland/autotests/client/test_wayland_seat.cpp @@ -631,7 +631,10 @@ void TestWaylandSeat::testPointerButton_data() QTest::newRow("left") << Qt::LeftButton << quint32(BTN_LEFT); QTest::newRow("right") << Qt::RightButton << quint32(BTN_RIGHT); + //Deprecated in qt5.15 +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) QTest::newRow("mid") << Qt::MidButton << quint32(BTN_MIDDLE); +#endif QTest::newRow("middle") << Qt::MiddleButton << quint32(BTN_MIDDLE); QTest::newRow("back") << Qt::BackButton << quint32(BTN_BACK); QTest::newRow("x1") << Qt::XButton1 << quint32(BTN_BACK);