Commit 18e6ad13 authored by Halla Rempt's avatar Halla Rempt
Browse files

BUG:349554 Remove old compatibility code

It causes rounding errors.
parent 5ddbf8b4
......@@ -27,25 +27,11 @@
#include "kis_brush_based_paintop_options_widget.h"
#include "kis_boundary.h"
const QString HAIRY_VERSION = "Hairy/Version";
KisHairyPaintOpSettings::KisHairyPaintOpSettings()
{
setProperty(HAIRY_VERSION, "2");
}
QPainterPath KisHairyPaintOpSettings::brushOutline(const KisPaintInformation &info, OutlineMode mode) const
{
// if (mode == CursorIsOutline || mode == CursorIsCircleOutline || mode == CursorIsTiltOutline || mode == CursorIsColorOutline)//
return brushOutlineImpl(info, mode, getDouble(HAIRY_BRISTLE_SCALE));
}
void KisHairyPaintOpSettings::fromXML(const QDomElement& elt)
{
setProperty(HAIRY_VERSION, "1"); // This make sure that fromXML will override HAIRY_VERSION with 2, or will default to 1
KisBrushBasedPaintOpSettings::fromXML(elt);
QVariant v;
if (!getProperty(HAIRY_VERSION, v) || v == "1") {
setProperty(HAIRY_BRISTLE_SCALE, 2.0 * getDouble(HAIRY_BRISTLE_SCALE));
}
}
......@@ -35,7 +35,7 @@ public:
KisHairyPaintOpSettings();
QPainterPath brushOutline(const KisPaintInformation &info, OutlineMode mode) const;
virtual void fromXML(const QDomElement&);
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment