Krita Source Code Documentation
Loading...
Searching...
No Matches
InfoObject.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef LIBKIS_INFOOBJECT_H
7#define LIBKIS_INFOOBJECT_H
8
9#include <QObject>
11
12#include "kritalibkis_export.h"
13#include "libkis.h"
14
19class KRITALIBKIS_EXPORT InfoObject : public QObject
20{
21 Q_OBJECT
22
23public:
25
29 explicit InfoObject(QObject *parent = 0);
30 ~InfoObject() override;
31
32 bool operator==(const InfoObject &other) const;
33 bool operator!=(const InfoObject &other) const;
37 QMap<QString, QVariant> properties() const;
38
42 void setProperties(QMap<QString, QVariant> propertyMap);
43
44public Q_SLOTS:
52 void setProperty(const QString &key, QVariant value);
53
57 QVariant property(const QString &key);
58
59private:
60
61 friend class Filter;
62 friend class Document;
63 friend class Node;
69 KisPropertiesConfigurationSP configuration() const;
70
71 struct Private;
73
74};
75
76#endif // LIBKIS_INFOOBJECT_H
float value(const T *src, size_t ch)
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
bool operator!=(const KoID &v1, const KoID &v2)
Definition KoID.h:103
Private * d
Definition InfoObject.h:72
Definition Node.h:24