Commit 7ed58691 authored by David Edmundson's avatar David Edmundson
Browse files

Port old style connects in QSignalSpy

Ported via clazy
parent 339a485c
This diff is collapsed.
......@@ -65,7 +65,7 @@ void DecorationTest::testOpaque()
{
MockBridge bridge;
MockDecoration deco(&bridge);
QSignalSpy opaqueChangedSpy(&deco, SIGNAL(opaqueChanged(bool)));
QSignalSpy opaqueChangedSpy(&deco, &KDecoration2::Decoration::opaqueChanged);
QVERIFY(opaqueChangedSpy.isValid());
QCOMPARE(deco.isOpaque(), false);
deco.setOpaque(false);
......@@ -142,7 +142,7 @@ void DecorationTest::testSection()
QCOMPARE(deco.titleBar(), titleBar);
QCOMPARE(deco.size(), QSize(100 + deco.borderLeft() + deco.borderRight(), 100 + deco.borderTop() + deco.borderBottom()));
QSignalSpy spy(&deco, SIGNAL(sectionUnderMouseChanged(Qt::WindowFrameSection)));
QSignalSpy spy(&deco, &KDecoration2::Decoration::sectionUnderMouseChanged);
QVERIFY(spy.isValid());
QFETCH(QPoint, pos);
QHoverEvent event(QEvent::HoverMove, QPointF(pos), QPointF(pos));
......
......@@ -57,7 +57,7 @@ void DecorationShadowTest::testPadding()
QCOMPARE(metaProperty.isReadable(), true);
QCOMPARE(metaProperty.hasNotifySignal(), true);
QCOMPARE(metaProperty.type(), QVariant::Int);
QSignalSpy changedSpy(&shadow, SIGNAL(paddingChanged()));
QSignalSpy changedSpy(&shadow, &KDecoration2::DecorationShadow::paddingChanged);
QVERIFY(changedSpy.isValid());
QCOMPARE(shadow.property(propertyName.constData()).isValid(), true);
......@@ -112,7 +112,7 @@ void DecorationShadowTest::testSizes()
QCOMPARE(metaProperty.isReadable(), true);
QCOMPARE(metaProperty.hasNotifySignal(), true);
QCOMPARE(metaProperty.type(), QVariant::Rect);
QSignalSpy changedSpy(&shadow, SIGNAL(innerShadowRectChanged()));
QSignalSpy changedSpy(&shadow, &KDecoration2::DecorationShadow::innerShadowRectChanged);
QVERIFY(changedSpy.isValid());
QCOMPARE(shadow.innerShadowRect(), QRect());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment