Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSmudgeLengthOptionData.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
11{
12 mode = (Mode)setting->getInt("SmudgeRateMode", SMEARING_MODE);
13 smearAlpha = setting->getBool("SmudgeRateSmearAlpha", true);
14 useNewEngine = setting->getBool("SmudgeRateUseNewEngine", false);
15
16 return true;
17}
18
20{
21 setting->setProperty("SmudgeRateMode", mode);
22 setting->setProperty("SmudgeRateSmearAlpha", smearAlpha);
23 setting->setProperty("SmudgeRateUseNewEngine", useNewEngine);
24}
virtual void setProperty(const QString &name, const QVariant &value)
bool getBool(const QString &name, bool def=false) const
int getInt(const QString &name, int def=0) const
void write(KisPropertiesConfiguration *setting) const
bool read(const KisPropertiesConfiguration *setting)