┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/kfileitemlistviewtest.cpp
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2018-02-03 20:46:08 +0100
committerElvis Angelaccio <[email protected]>2018-02-03 20:46:08 +0100
commitcef4d96cc6ed30284815320b1f7ddb59f201589e (patch)
tree720a63cb1d0aa4004b0bbbf8988df3095134f74f /src/tests/kfileitemlistviewtest.cpp
parent4709626a9b4557e77f99ed15353e80ffa608c75c (diff)
Port QSignalSpy to new signal syntax
More compile-time safety. Tests still pass. This also fixes a krazy warning about "normalised signal/slot signatures".
Diffstat (limited to 'src/tests/kfileitemlistviewtest.cpp')
-rw-r--r--src/tests/kfileitemlistviewtest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/kfileitemlistviewtest.cpp b/src/tests/kfileitemlistviewtest.cpp
index 196018045..b4b581384 100644
--- a/src/tests/kfileitemlistviewtest.cpp
+++ b/src/tests/kfileitemlistviewtest.cpp
@@ -87,9 +87,9 @@ void KFileItemListViewTest::cleanup()
*/
void KFileItemListViewTest::testGroupedItemChanges()
{
- QSignalSpy itemsInsertedSpy(m_model, SIGNAL(itemsInserted(KItemRangeList)));
+ QSignalSpy itemsInsertedSpy(m_model, &KFileItemModel::itemsInserted);
QVERIFY(itemsInsertedSpy.isValid());
- QSignalSpy itemsRemovedSpy(m_model, SIGNAL(itemsRemoved(KItemRangeList)));
+ QSignalSpy itemsRemovedSpy(m_model, &KFileItemModel::itemsRemoved);
QVERIFY(itemsRemovedSpy.isValid());
m_model->setGroupedSorting(true);