[autotests] Fix build with older compiler

We cannot create a QSignalSpy on a QPointer.
This commit is contained in:
Martin Gräßlin 2016-06-14 11:22:58 +02:00
parent 9a44631c24
commit 07e0f92d80

View file

@ -172,7 +172,7 @@ void TestBlur::testCreate()
QCOMPARE(serverSurface->blur()->region(), QRegion(0, 0, 10, 20)); QCOMPARE(serverSurface->blur()->region(), QRegion(0, 0, 10, 20));
// and destroy // and destroy
QSignalSpy destroyedSpy(serverSurface->blur(), &QObject::destroyed); QSignalSpy destroyedSpy(serverSurface->blur().data(), &QObject::destroyed);
QVERIFY(destroyedSpy.isValid()); QVERIFY(destroyedSpy.isValid());
delete blur; delete blur;
QVERIFY(destroyedSpy.wait()); QVERIFY(destroyedSpy.wait());