Krita Source Code Documentation
Loading...
Searching...
No Matches
KisBrushOpSettings.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
13
15 : KisBrushBasedPaintOpSettings(resourcesInterface),
16 m_d(new Private)
17{
18}
19
23
25{
26 return true;
27}
28
29#include "kis_paintop_preset.h"
33
35{
37
38 if (props.isEmpty()) {
39 {
43 "lightness_strength",
44 settings, 0);
45
46 QObject::connect(updateProxy, SIGNAL(sigSettingsChanged()), prop, SLOT(requestReadValue()));
47 prop->requestReadValue();
48 props << toQShared(prop);
49 }
50 }
51
52 return KisBrushBasedPaintOpSettings::uniformProperties(settings, updateProxy) + props;
53}
bool needsAsynchronousUpdates() const override
KisBrushOpSettings(KisResourcesInterfaceSP resourcesInterface)
const QScopedPointer< Private > m_d
QSharedPointer< T > toQShared(T *ptr)
Container< QSharedPointer< T > > listWeakToStrong(const Container< QWeakPointer< T > > &container, bool allOrNothing=true)
QList< KisUniformPaintOpPropertyWSP > uniformProperties
QList< KisUniformPaintOpPropertyWSP > uniformProperties