Krita Source Code Documentation
Loading...
Searching...
No Matches
WGCommonColorsCalculationRunner.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Mathias Wein <lynx.mw+kde@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef WGCOMMONCOLORSCALCULATIONRUNNER_H
8#define WGCOMMONCOLORSCALCULATIONRUNNER_H
9
10#include <kis_types.h>
11
12#include <QImage>
13#include <QObject>
14#include <QRgb>
15#include <QRunnable>
16#include <QSharedPointer>
17
18class KoColor;
19
20class WGCommonColorsCalculationRunner : public QObject, public QRunnable
21{
22 Q_OBJECT
23public:
24 WGCommonColorsCalculationRunner(KisImageSP image, int numberOfColors,
26
27
28 void run() override;
29 void extractColors();
31
32
33Q_SIGNALS:
34 void sigDone();
35
36private:
40};
41
42#endif // WGCOMMONCOLORSCALCULATIONRUNNER_H
QSharedPointer< QVector< KoColor > > m_commonColors
WGCommonColorsCalculationRunner(KisImageSP image, int numberOfColors, QSharedPointer< QVector< KoColor > > colorStore)