Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_common_colors_recalculation_runner.h
Go to the documentation of this file.
1
/*
2
* SPDX-License-Identifier: GPL-3.0-or-later
3
*/
4
5
#ifndef KIS_COMMON_COLORS_RECALCULATION_RUNNER_H
6
#define KIS_COMMON_COLORS_RECALCULATION_RUNNER_H
7
8
#include <QRunnable>
9
#include <QColor>
10
#include <QImage>
11
12
class
KoColor
;
13
class
KisCommonColors
;
14
15
16
class
KisCommonColorsRecalculationRunner
:
public
QRunnable
17
{
18
public
:
19
KisCommonColorsRecalculationRunner
(QImage data,
int
numberOfColors,
KisCommonColors
* parentObj)
20
:
m_imageData
(data)
21
,
m_numColors
(numberOfColors)
22
,
m_commonColors
(parentObj)
23
{}
24
25
void
run
()
override
;
26
QList<KoColor>
extractColors
();
27
QList<QRgb>
getColors
();
28
29
private
:
30
QImage
m_imageData
;
31
int
m_numColors
;
32
KisCommonColors
*
m_commonColors
;
33
};
34
35
#endif
// KIS_COMMON_COLORS_RECALCULATION_RUNNER_H
KisCommonColorsRecalculationRunner
Definition
kis_common_colors_recalculation_runner.h:17
KisCommonColorsRecalculationRunner::run
void run() override
Definition
kis_common_colors_recalculation_runner.cpp:130
KisCommonColorsRecalculationRunner::m_commonColors
KisCommonColors * m_commonColors
Definition
kis_common_colors_recalculation_runner.h:32
KisCommonColorsRecalculationRunner::KisCommonColorsRecalculationRunner
KisCommonColorsRecalculationRunner(QImage data, int numberOfColors, KisCommonColors *parentObj)
Definition
kis_common_colors_recalculation_runner.h:19
KisCommonColorsRecalculationRunner::extractColors
QList< KoColor > extractColors()
Definition
kis_common_colors_recalculation_runner.cpp:135
KisCommonColorsRecalculationRunner::m_imageData
QImage m_imageData
Definition
kis_common_colors_recalculation_runner.h:30
KisCommonColorsRecalculationRunner::getColors
QList< QRgb > getColors()
Definition
kis_common_colors_recalculation_runner.cpp:191
KisCommonColorsRecalculationRunner::m_numColors
int m_numColors
Definition
kis_common_colors_recalculation_runner.h:31
KisCommonColors
Definition
kis_common_colors.h:18
KoColor
Definition
KoColor.h:31
QList
Definition
KisQStringListFwd.h:16
plugins
dockers
advancedcolorselector
kis_common_colors_recalculation_runner.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52