Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPaintThicknessOptionData.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 mode = (ThicknessMode)setting->getInt("PaintThicknessThicknessMode", OVERLAY);
14
15 if (mode == RESERVED) {
16 mode = OVERLAY;
17 }
18
19 return true;
20}
21
23{
24 setting->setProperty("PaintThicknessThicknessMode", mode);
25}
bool read(const KisPropertiesConfiguration *setting)
void write(KisPropertiesConfiguration *setting) const
virtual void setProperty(const QString &name, const QVariant &value)
int getInt(const QString &name, int def=0) const