92 if (props.isEmpty()) {
96 KisDoubleSliderBasedPaintOpPropertyCallback::SubType_Angle,
97 KoID(
"hatching_angle", i18n(
"Hatching Angle")),
101 prop->setRange(-90, 90);
102 prop->setSingleStep(0.01);
103 prop->setDecimals(2);
104 prop->setSuffix(QStringLiteral(
"°"));
109 option.
read(prop->settings().data());
110 prop->setValue(option.
angle);
115 option.
read(prop->settings().data());
116 option.
angle = prop->value().toReal();
117 option.
write(prop->settings().data());
120 QObject::connect(updateProxy, SIGNAL(sigSettingsChanged()), prop, SLOT(requestReadValue()));
121 prop->requestReadValue();
127 KoID(
"hatching_separation", i18n(
"Separation")),
131 prop->setRange(1.0, 30);
132 prop->setSingleStep(0.01);
133 prop->setDecimals(2);
134 prop->setSuffix(i18n(
" px"));
139 option.
read(prop->settings().data());
145 option.
read(prop->settings().data());
147 option.
write(prop->settings().data());
150 QObject::connect(updateProxy, SIGNAL(sigSettingsChanged()), prop, SLOT(requestReadValue()));
151 prop->requestReadValue();
157 KoID(
"hatching_thickness", i18n(
"Thickness")),
161 prop->setRange(1.0, 30);
162 prop->setSingleStep(0.01);
163 prop->setDecimals(2);
164 prop->setSuffix(i18n(
" px"));
169 option.
read(prop->settings().data());
175 option.
read(prop->settings().data());
176 option.
thickness = prop->value().toReal();
177 option.
write(prop->settings().data());
180 QObject::connect(updateProxy, SIGNAL(sigSettingsChanged()), prop, SLOT(requestReadValue()));
181 prop->requestReadValue();