From e7019763076cbbe3d52c2a03133c3ded5558f017 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 19 Sep 2025 20:54:13 +0200 Subject: initial commit --- keyvalue.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 keyvalue.h (limited to 'keyvalue.h') diff --git a/keyvalue.h b/keyvalue.h new file mode 100644 index 0000000..b5b7b79 --- /dev/null +++ b/keyvalue.h @@ -0,0 +1,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) -- cgit v1.2.3-70-g09d2