diff --git a/src/wayland/autotests/client/test_wayland_blur.cpp b/src/wayland/autotests/client/test_wayland_blur.cpp index cad680d28f..a220526ea9 100644 --- a/src/wayland/autotests/client/test_wayland_blur.cpp +++ b/src/wayland/autotests/client/test_wayland_blur.cpp @@ -172,7 +172,7 @@ void TestBlur::testCreate() QCOMPARE(serverSurface->blur()->region(), QRegion(0, 0, 10, 20)); // and destroy - QSignalSpy destroyedSpy(serverSurface->blur(), &QObject::destroyed); + QSignalSpy destroyedSpy(serverSurface->blur().data(), &QObject::destroyed); QVERIFY(destroyedSpy.isValid()); delete blur; QVERIFY(destroyedSpy.wait());