Test that modified() is emitted when deleting Groups and Entries.

This commit is contained in:
Felix Geyer 2012-04-18 17:31:05 +02:00
parent 433e8c4508
commit 134f9a663e

View File

@ -89,9 +89,17 @@ void TestModified::testSignals()
g4->setParent(g3); g4->setParent(g3);
QCOMPARE(spyModified.count(), ++spyCount); QCOMPARE(spyModified.count(), ++spyCount);
delete g4;
QCOMPARE(spyModified.count(), ++spyCount);
delete entry2;
QCOMPARE(spyModified2.count(), ++spyCount2);
QCOMPARE(spyModified.count(), spyCount);
QCOMPARE(spyModified2.count(), spyCount2); QCOMPARE(spyModified2.count(), spyCount2);
delete db; delete db;
delete db2;
} }
void TestModified::testGroupSets() void TestModified::testGroupSets()