Fix build with Qt <5.10 (no support for QCOMPARE(uint, int)

This commit is contained in:
Friedrich W. H. Kossebau 2018-11-03 19:17:52 +01:00
parent f44ff394ba
commit 8079a195f5

View file

@ -505,7 +505,7 @@ void TestVirtualDesktop::testCreateRequested()
m_plasmaVirtualDesktopManagement->requestCreateVirtualDesktop(QStringLiteral("Desktop"), 1);
desktopCreateRequestedSpy.wait();
QCOMPARE(desktopCreateRequestedSpy.first().first().toString(), QStringLiteral("Desktop"));
QCOMPARE(desktopCreateRequestedSpy.first().at(1).toUInt(), 1);
QCOMPARE(desktopCreateRequestedSpy.first().at(1).toUInt(), (quint32)1);
//actually create
m_plasmaVirtualDesktopManagementInterface->createDesktop(QStringLiteral("0-4"), 1);