Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paintop_factory.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2008 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
7
8#include <klocalizedstring.h>
9#include <KoColorSpace.h>
10
11KisPaintOpFactory::KisPaintOpFactory(const QStringList & whiteListedCompositeOps)
12 : m_whiteListedCompositeOps(whiteListedCompositeOps), m_priority(100)
13 , m_visibility(AUTO)
14{
15}
16
21
22#ifdef HAVE_THREADED_TEXT_RENDERING_WORKAROUND
23void KisPaintOpFactory::preinitializePaintOpIfNeeded(const KisPaintOpSettingsSP settings)
24{
25 Q_UNUSED(settings);
26}
27#endif /* HAVE_THREADED_TEXT_RENDERING_WORKAROUND */
28
30{
31 QPixmap p = QPixmap(22, 22);
32 p.fill(Qt::transparent);
33 return QIcon(p);
34}
35
37{
38 return i18nc("Category of brush engines", "Brush engines");
39}
40
45
46void KisPaintOpFactory::setPriority(int newPriority)
47{
48 m_priority = newPriority;
49}
50
51
53{
54 return m_priority;
55}
56
57
58
const Params2D p
QStringList m_whiteListedCompositeOps
KisPaintOpFactory(const QStringList &whiteListedCompositeOps=QStringList())
static QString categoryStable()
QStringList whiteListedCompositeOps() const
void setPriority(int newPriority)
virtual KisInterstrokeDataFactory * createInterstrokeDataFactory(const KisPaintOpSettingsSP settings, KisResourcesInterfaceSP resourcesInterface) const
virtual QIcon icon()
icon