Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSizeOptionData.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 */
6#include "KisSizeOptionData.h"
7
8
10 : KisCurveOptionData(prefix,
11 KoID("Size", i18n("Size")),
12 Checkability::Checkable)
13{
14}
15
17{
19
20 if (!isCheckable || isChecked) {
21 // HINT: FUZZY_PER_STROKE doesn't affect instant preview
22 if (sensorStruct().sensorFuzzyPerDab.isActive) {
23 l.limitations << KoID("size-fade", i18nc("PaintOp instant preview limitation", "Size -> Fuzzy (sensor)"));
24 }
25
26 if (sensorStruct().sensorFade.isActive) {
27 l.blockers << KoID("size-fuzzy", i18nc("PaintOp instant preview limitation", "Size -> Fade (sensor)"));
28 }
29 }
30
31 return l;
32}
Definition KoID.h:30
KisKritaSensorData & sensorStruct()
KisPaintopLodLimitations lodLimitations() const
KisSizeOptionData(const QString &prefix=QString())