Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d3b13bc

Von Christian Ehringfeld vor mehr als 7 Jahren hinzugefügt

  • ID 6d3b13bc614a6ab900da03196265768c8a8eb5e3
  • Vorgänger edef7577
  • Nachfolger 279f967d

fix?!

Unterschiede anzeigen:

src/entityinstancefactory.cpp
qWarning() << prop.name() << "on Entity" << EntityHelper::getClassname(
e) << "not writeable!";
}
} else {
e->setProperty(iterator.key().toLatin1().data(), iterator.value());
}
++iterator;
}
......
QVariant &entity) {
auto e = entity.value<QSharedPointer<Entity>>();
if(!e) {
auto ne = *reinterpret_cast<QSharedPointer<Entity>*>(entity.data());
if(ne && ne->getClassname() != "Entity") {
e = ne;
} else {
e = QSharedPointer<Entity>();
auto ne = *static_cast<QSharedPointer<QObject>*>(entity.data());
auto entityPtr = ne.objectCast<Entity>();
if(entityPtr) {
e = entityPtr;
}
}
return e;
tests/em/tst_querybuilder.cpp
CuteEntityManager::EntityInstanceFactory::registerClass<WorkerGroup>();
this->e = new CuteEntityManager::EntityManager("QSQLITE", ":memory:", "", "", "", "",
true, "foreign_keys = ON", false);
// this->e = new
// CuteEntityManager::EntityManager("QSQLITE",
// QDir::currentPath() + "/db.sqlite");
QStringList inits = QStringList() << "Person" << "Group" << "Employee" << "WorkerGroup";
QVERIFY2(this->e->startup("queryBuilderTest", inits), "Failure");
QSharedPointer<Person> p1 = QSharedPointer<Person>(new Person("Lucien", "We",

Auch abrufbar als: Unified diff