Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPaintingModeOptionData.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
7
9
10
12{
13 hasPaintingModeProperty = setting->hasProperty("PaintOpAction");
14
15 const int value = setting->getInt("PaintOpAction", 2);
17
18 return true;
19}
20
22{
23 const int value =
25
26 setting->setProperty("PaintOpAction", value);
27}
float value(const T *src, size_t ch)
bool read(const KisPropertiesConfiguration *setting)
void write(KisPropertiesConfiguration *setting) const
virtual bool hasProperty(const QString &name) const
virtual void setProperty(const QString &name, const QVariant &value)
int getInt(const QString &name, int def=0) const