Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/tools/selectiontools/kis_tool_select_outline.cc
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 113 | if (m_points.count() > 2) { | |||
---|---|---|---|---|---|
117 | 117 | | |||
118 | if (selectionMode() == PIXEL_SELECTION) { | 118 | if (selectionMode() == PIXEL_SELECTION) { | ||
119 | 119 | | |||
120 | KisPixelSelectionSP tmpSel = KisPixelSelectionSP(new KisPixelSelection()); | 120 | KisPixelSelectionSP tmpSel = KisPixelSelectionSP(new KisPixelSelection()); | ||
121 | 121 | | |||
122 | KisPainter painter(tmpSel); | 122 | KisPainter painter(tmpSel); | ||
123 | painter.setPaintColor(KoColor(Qt::black, tmpSel->colorSpace())); | 123 | painter.setPaintColor(KoColor(Qt::black, tmpSel->colorSpace())); | ||
124 | painter.setPaintOpPreset(currentPaintOpPreset(), currentNode(), currentImage()); | 124 | painter.setPaintOpPreset(currentPaintOpPreset(), currentNode(), currentImage()); | ||
125 | painter.setAntiAliasPolygonFill(selectionOptionWidget()->antiAliasSelection()); | 125 | painter.setAntiAliasPolygonFill(antiAliasSelection()); | ||
126 | painter.setFillStyle(KisPainter::FillStyleForegroundColor); | 126 | painter.setFillStyle(KisPainter::FillStyleForegroundColor); | ||
127 | painter.setStrokeStyle(KisPainter::StrokeStyleNone); | 127 | painter.setStrokeStyle(KisPainter::StrokeStyleNone); | ||
128 | 128 | | |||
129 | painter.paintPolygon(m_points); | 129 | painter.paintPolygon(m_points); | ||
130 | 130 | | |||
131 | QPainterPath cache; | 131 | QPainterPath cache; | ||
132 | cache.addPolygon(m_points); | 132 | cache.addPolygon(m_points); | ||
133 | cache.closeSubpath(); | 133 | cache.closeSubpath(); | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |