Deleted local qjson, now using system qjson

Modified CmakeLists to require qjson
Replaced non-standard qjson calls with standard ones
This commit is contained in:
IvanF committed 2015-01-28 22:42:02 -08:00
1 parent 65eb71e645
commit f04f4302a2
71 files changed
+13 -14010

No files matched your search

+5 -4
View File
@@ -14,9 +14,9 @@
#include "EntryConfig.h"
#include "core/Entry.h"
#include "core/EntryAttributes.h"
#include "qjson/src/parser.h"
#include "qjson/src/qobjecthelper.h"
#include "qjson/src/serializer.h"
#include "qjson/parser.h"
#include "qjson/qobjecthelper.h"
#include "qjson/serializer.h"
static const char KEEPASSHTTP_NAME[] = "KeePassHttp Settings"; //TODO: duplicated string (also in Service.cpp)
@@ -94,7 +94,8 @@ bool EntryConfig::load(const Entry *entry)
void EntryConfig::save(Entry *entry)
{
QVariant v = QJson::QObjectHelper::qobject2qvariant(this, QJson::QObjectHelper::Flag_None);
//QVariant v = QJson::QObjectHelper::qobject2qvariant(this, QJson::QObjectHelper::Flag_None);
QVariant v = QJson::QObjectHelper::qobject2qvariant(this);
QByteArray json = QJson::Serializer().serialize(v);
entry->attributes()->set(KEEPASSHTTP_NAME, json);
}