blob: f8eb5c7b598c5963650ccbbe5f991532c8cfcefa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
// goodies
#include "g_object.h"
#include "g_property.h"
namespace goodies
{
class Q_DECL_EXPORT KeyValue : public G_Object
{
Q_OBJECT
G_PROPERTY(QVariant, key);
G_PROPERTY(QVariant, value);
public:
explicit KeyValue(
const QVariant& key = "",
const QVariant& value = "",
QObject* parent = nullptr
);
G_OBJECT(goodies::G_Object, KeyValue)
ASSIGN_OPERATOR(goodies::G_Object, KeyValue)
};
} // namespace goodies
Q_DECLARE_METATYPE(goodies::KeyValue)
Q_DECLARE_METATYPE(QVector<goodies::KeyValue>)
|