mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 13:07:38 +03:00
Replaced Uuid with QUuid
This commit is contained in:
parent
dcece140a0
commit
ad4423d226
49 changed files with 413 additions and 612 deletions
|
@ -115,7 +115,7 @@ void TestModified::testGroupSets()
|
|||
|
||||
QSignalSpy spyModified(db.data(), SIGNAL(modifiedImmediate()));
|
||||
|
||||
root->setUuid(Uuid::random());
|
||||
root->setUuid(QUuid::createUuid());
|
||||
QCOMPARE(spyModified.count(), ++spyCount);
|
||||
root->setUuid(root->uuid());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
@ -135,12 +135,13 @@ void TestModified::testGroupSets()
|
|||
root->setIcon(root->iconNumber());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
||||
root->setIcon(Uuid::random());
|
||||
root->setIcon(QUuid::createUuid());
|
||||
QCOMPARE(spyModified.count(), ++spyCount);
|
||||
root->setIcon(root->iconUuid());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
||||
group->setUuid(Uuid::random());
|
||||
|
||||
group->setUuid(QUuid::createUuid());
|
||||
QCOMPARE(spyModified.count(), ++spyCount);
|
||||
group->setUuid(group->uuid());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
@ -160,7 +161,7 @@ void TestModified::testGroupSets()
|
|||
group->setIcon(group->iconNumber());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
||||
group->setIcon(Uuid::random());
|
||||
group->setIcon(QUuid::createUuid());
|
||||
QCOMPARE(spyModified.count(), ++spyCount);
|
||||
group->setIcon(group->iconUuid());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
@ -179,7 +180,7 @@ void TestModified::testEntrySets()
|
|||
|
||||
QSignalSpy spyModified(db.data(), SIGNAL(modifiedImmediate()));
|
||||
|
||||
entry->setUuid(Uuid::random());
|
||||
entry->setUuid(QUuid::createUuid());
|
||||
QCOMPARE(spyModified.count(), ++spyCount);
|
||||
entry->setUuid(entry->uuid());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
@ -214,7 +215,7 @@ void TestModified::testEntrySets()
|
|||
entry->setIcon(entry->iconNumber());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
||||
entry->setIcon(Uuid::random());
|
||||
entry->setIcon(QUuid::createUuid());
|
||||
QCOMPARE(spyModified.count(), ++spyCount);
|
||||
entry->setIcon(entry->iconUuid());
|
||||
QCOMPARE(spyModified.count(), spyCount);
|
||||
|
@ -283,7 +284,7 @@ void TestModified::testHistoryItems()
|
|||
{
|
||||
QScopedPointer<Entry> entry(new Entry());
|
||||
QDateTime created = entry->timeInfo().creationTime();
|
||||
entry->setUuid(Uuid::random());
|
||||
entry->setUuid(QUuid::createUuid());
|
||||
entry->setTitle("a");
|
||||
entry->setTags("a");
|
||||
QScopedPointer<EntryAttributes> attributes(new EntryAttributes());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue