[C++][Qt]Replace usage of QVariant with a more intuitive optional wrapper (#8960)

* Replace usage of QVariant with a more intuitive wrapper which also supports non standard types/classes

* Fix crash due to usage of object instead of reference
This commit is contained in:
sunn
2021-03-15 18:56:20 +01:00
committed by GitHub
parent 9d8494a89d
commit fcab51322e
11 changed files with 231 additions and 216 deletions

View File

@@ -217,6 +217,7 @@ void PetApiTests::updatePetWithFormTest() {
// fetch it
bool petUpdated2 = false;
connect(&api, &PFXPetApi::getPetByIdSignal, [&](PFXPet pet) {
Q_UNUSED(pet);
petUpdated2 = true;
// QVERIFY(pet.getName().compare(QString("gorilla")) == 0);
QTimer::singleShot(0, &loop, &QEventLoop::quit);