Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 4f2fad4e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix selecting colors in the stroke selection dialog

And clean up the code: comparing the translated strings in a
combobox with untranslated English strings to figure out what
option was chosen is, of course, a big no-no.

(cherry picked from commit 9c8454f3)
parent e62fd57c
......@@ -30,25 +30,34 @@
class KoColorSpace;
class KoColorPopupAction;
enum class linePosition
enum LinePosition
Outside, Inside, Center
enum class drawType{
brushDraw, lineDraw
enum class DrawType
CurrentBrush, Line
enum class ColorLineSource
FGColor, BGColor, CustomColor
enum class colorFillSource {
enum class ColorFillSource {
None, PaintColor, BGColor, CustomColor, FGColor
struct StrokeSelectionOptions {
struct StrokeSelectionOptions
StrokeSelectionOptions ();
int lineSize;
bool brushSelected;
int _colorFillSource;
int lineColorSource;
int lineDimension;
int lineSize {1};
bool brushSelected {false};
ColorFillSource colorFillSource {ColorFillSource::None};
ColorLineSource colorLineSource {ColorLineSource::FGColor};
int lineDimension {1};
KoColor color;
KoColor fillColor;
KoColor customColor;
......@@ -92,7 +101,7 @@ public:
~KisDlgStrokeSelection() override;
int getLineSize() const;
linePosition getLinePosition() const;
LinePosition getLinePosition() const;
KoColor getSelectedColor() const;
bool isBrushSelected() const;
KoColor getFillSelectedColor() const;
......@@ -102,7 +111,7 @@ private:
WdgStrokeSelection *m_page {0};
KisImageWSP m_image;
KoCanvasResourceProvider *m_resourceManager {0};
KisDisplayColorConverter *converter {0};
KisDisplayColorConverter *m_converter {0};
bool m_isVectorLayer {false};
private Q_SLOTS:
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