blob: b5b7b799a3acfc5732f3ee2702120af7199f4214 (
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
|
#pragma once
// goodies
#include "g_object.h"
#include "g_property.h"
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(G_Object, KeyValue)
ASSIGN_OPERATOR(G_Object, KeyValue)
};
Q_DECLARE_METATYPE(KeyValue)
Q_DECLARE_METATYPE(QVector<KeyValue>)
|