added simple fixess for QHNetwork

This commit is contained in:
Andrei Yankovich 2020-12-12 21:24:08 +03:00
parent 6b4100b2cd
commit 1f24458231
3 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,7 @@ endif()
find_package(Qt5 COMPONENTS Core Test REQUIRED)
if(NOT DEFINED HEART_BUILD_LVL)
set(HEART_BUILD_LVL 1)
set(HEART_BUILD_LVL 2)
endif()
include(QuasarAppLib/CMake/ccache.cmake)

View File

@ -68,5 +68,11 @@ bool NodeObject::copyFrom(const AbstractData *other) {
return true;
}
DBVariantMap NodeObject::variantMap() const {
auto map = NetworkMember::variantMap();
map[primaryKey()].type = map[primaryKey()].type | MemberType::Insert;
return map;
}
}
}

View File

@ -32,6 +32,10 @@ protected:
public:
DBObject *createDBObject() const override;
bool copyFrom(const AbstractData *other) override;
// DBObject interface
public:
virtual DBVariantMap variantMap() const override;
};
}
}