mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 06:36:07 -04:00
Un-constify Entry* and Group* in various related signals and models/views.
This commit is contained in:
parent
d2e677c7f4
commit
e96c3bb011
11 changed files with 66 additions and 65 deletions
|
@ -69,7 +69,7 @@ void TestGroup::testParenting()
|
|||
QVERIFY(g1->children().at(1) == g3);
|
||||
QVERIFY(g3->children().contains(g4));
|
||||
|
||||
QSignalSpy spy(db, SIGNAL(groupDataChanged(const Group*)));
|
||||
QSignalSpy spy(db, SIGNAL(groupDataChanged(Group*)));
|
||||
g2->setName("test");
|
||||
g4->setName("test");
|
||||
g3->setName("test");
|
||||
|
@ -90,9 +90,9 @@ void TestGroup::testSignals()
|
|||
g1->setParent(root);
|
||||
g2->setParent(root);
|
||||
|
||||
QSignalSpy spyAboutToAdd(db, SIGNAL(groupAboutToAdd(const Group*,int)));
|
||||
QSignalSpy spyAboutToAdd(db, SIGNAL(groupAboutToAdd(Group*,int)));
|
||||
QSignalSpy spyAdded(db, SIGNAL(groupAdded()));
|
||||
QSignalSpy spyAboutToRemove(db, SIGNAL(groupAboutToRemove(const Group*)));
|
||||
QSignalSpy spyAboutToRemove(db, SIGNAL(groupAboutToRemove(Group*)));
|
||||
QSignalSpy spyRemoved(db, SIGNAL(groupRemoved()));
|
||||
|
||||
g2->setParent(root, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue