Switch to JSON-encoded store
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
7c3a810d3d
commit
d2ee023788
3 changed files with 17 additions and 16 deletions
|
@ -76,17 +76,6 @@ struct ShortcutData {
|
|||
QString name;
|
||||
QString filePath;
|
||||
ShortcutTarget target = ShortcutTarget::Other;
|
||||
|
||||
friend QDataStream& operator<<(QDataStream& out, const ShortcutData& data)
|
||||
{
|
||||
out << data.name << data.filePath << data.target;
|
||||
return out;
|
||||
}
|
||||
friend QDataStream& operator>>(QDataStream& in, ShortcutData& data)
|
||||
{
|
||||
in >> data.name >> data.filePath >> data.target;
|
||||
return in;
|
||||
}
|
||||
};
|
||||
|
||||
/*!
|
||||
|
@ -339,6 +328,5 @@ class BaseInstance : public QObject, public std::enable_shared_from_this<BaseIns
|
|||
};
|
||||
|
||||
Q_DECLARE_METATYPE(shared_qobject_ptr<BaseInstance>)
|
||||
Q_DECLARE_METATYPE(ShortcutData)
|
||||
// Q_DECLARE_METATYPE(BaseInstance::InstanceFlag)
|
||||
// Q_DECLARE_OPERATORS_FOR_FLAGS(BaseInstance::InstanceFlags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue