From 9ad3f1c6727f6f7301068c5427b475e864655f5d Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 24 Sep 2018 16:40:26 +0300 Subject: [PATCH] [autotests] Register KWin::Deleted* in SlidingPopupsTest Summary: QSignalSpy is not happy about KWin::Deleted*: QWARN : SlidingPopupsTest::testWithOtherEffectWayland(wobblywindows, slide) QSignalSpy: Unable to handle parameter 'deleted' of type 'KWin::Deleted*' of method 'windowClosed', use qRegisterMetaType to register it. Test Plan: Ran the test, haven't noticed any warnings. Reviewers: #kwin, broulik Reviewed By: broulik Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15730 --- autotests/integration/effects/slidingpopups_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autotests/integration/effects/slidingpopups_test.cpp b/autotests/integration/effects/slidingpopups_test.cpp index a67eb40a88..0d8252618b 100644 --- a/autotests/integration/effects/slidingpopups_test.cpp +++ b/autotests/integration/effects/slidingpopups_test.cpp @@ -20,6 +20,7 @@ along with this program. If not, see . #include "kwin_wayland_test.h" #include "client.h" #include "composite.h" +#include "deleted.h" #include "effects.h" #include "effectloader.h" #include "cursor.h" @@ -61,6 +62,7 @@ void SlidingPopupsTest::initTestCase() { qRegisterMetaType(); qRegisterMetaType(); + qRegisterMetaType(); qRegisterMetaType(); QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); QVERIFY(workspaceCreatedSpy.isValid());