Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeFillResourceConnector.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOSHAPEFILLRESOURCECONNECTOR_H
8#define KOSHAPEFILLRESOURCECONNECTOR_H
9
10#include <QObject>
11#include <QScopedPointer>
12
13class KoCanvasBase;
14
15class KoShapeFillResourceConnector : public QObject
16{
17 Q_OBJECT
18public:
19 explicit KoShapeFillResourceConnector(QObject *parent = 0);
21
22 void connectToCanvas(KoCanvasBase *canvas);
23 void disconnect();
24
25private Q_SLOTS:
26 void slotCanvasResourceChanged(int key, const QVariant &value);
27
28private:
29 struct Private;
30 QScopedPointer<Private> m_d;
31};
32
33#endif // KOSHAPEFILLRESOURCECONNECTOR_H
float value(const T *src, size_t ch)
void slotCanvasResourceChanged(int key, const QVariant &value)