Commit 90a654fb authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove unused enum and variable

CID:250776
parent c67c1cf2
......@@ -41,11 +41,11 @@
#include "kis_global.h"
KisVisualTriangleSelectorShape::KisVisualTriangleSelectorShape(QWidget *parent,
Dimensions dimension,
const KoColorSpace *cs,
int channel1, int channel2,
const KoColorDisplayRendererInterface *displayRenderer,
int barwidth)
Dimensions dimension,
const KoColorSpace *cs,
int channel1, int channel2,
const KoColorDisplayRendererInterface *displayRenderer,
int barwidth)
: KisVisualColorSelectorShape(parent, dimension, cs, channel1, channel2, displayRenderer)
{
//qDebug() << "creating KisVisualTriangleSelectorShape" << this;
......@@ -191,14 +191,14 @@ void KisVisualTriangleSelectorShape::drawCursor()
painter.drawEllipse(mirror, cursorwidth-1, cursorwidth-1);
} else {*/
painter.setPen(Qt::white);
fill.setColor(Qt::white);
painter.setBrush(fill);
painter.drawEllipse(cursorPoint, cursorwidth, cursorwidth);
fill.setColor(col);
painter.setPen(Qt::black);
painter.setBrush(fill);
painter.drawEllipse(cursorPoint, cursorwidth-1.0, cursorwidth-1.0);
painter.setPen(Qt::white);
fill.setColor(Qt::white);
painter.setBrush(fill);
painter.drawEllipse(cursorPoint, cursorwidth, cursorwidth);
fill.setColor(col);
painter.setPen(Qt::black);
painter.setBrush(fill);
painter.drawEllipse(cursorPoint, cursorwidth-1.0, cursorwidth-1.0);
//}
painter.end();
setFullImage(fullSelector);
......
......@@ -35,7 +35,6 @@ class KisVisualTriangleSelectorShape : public KisVisualColorSelectorShape
{
Q_OBJECT
public:
enum singelDTypes{border, borderMirrored};
explicit KisVisualTriangleSelectorShape(QWidget *parent,
Dimensions dimension,
const KoColorSpace *cs,
......@@ -65,7 +64,6 @@ private:
QPointF convertShapeCoordinateToWidgetCoordinate(QPointF coordinate) const override;
QPointF convertWidgetCoordinateToShapeCoordinate(QPoint coordinate) const override;
singelDTypes m_type;
int m_barWidth;
QPolygon m_triangle;
QPointF m_center;
......
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