Commit 5368ccb0 authored by Boudewijn Rempt's avatar Boudewijn Rempt

fix compilation after refactoring of KoShapeBorderModel

parent 4d6cf257
......@@ -222,7 +222,7 @@ void KisToolLine::mouseReleaseEvent(KoPointerEvent *event)
path->normalize();
KoLineBorder* border = new KoLineBorder(1.0, currentFgColor().toQColor());
path->setBorder(border);
path->setStroke(border);
KUndo2Command * cmd = canvas()->shapeController()->addShape(path);
canvas()->addCommand(cmd);
......
......@@ -75,7 +75,7 @@ void KisToolPolygon::finishPolyline(const QVector<QPointF>& points)
path->normalize();
KoLineBorder* border = new KoLineBorder(1.0, currentFgColor().toQColor());
path->setBorder(border);
path->setStroke(border);
addShape(path);
}
......
......@@ -78,7 +78,7 @@ void KisToolPolyline::finishPolyline(const QVector<QPointF>& points)
path->normalize();
KoLineBorder* border = new KoLineBorder(1.0, currentFgColor().toQColor());
path->setBorder(border);
path->setStroke(border);
addShape(path);
}
......
......@@ -136,7 +136,7 @@ void KisToolStar::mouseReleaseEvent(KoPointerEvent *event)
path->normalize();
KoLineBorder* border = new KoLineBorder(1.0, currentFgColor().toQColor());
path->setBorder(border);
path->setStroke(border);
addShape(path);
}
......
......@@ -46,7 +46,7 @@ void KisShapeSelectionModel::add(KoShape *child)
if (m_shapeMap.contains(child))
return;
child->setBorder(0);
child->setStroke(0);
child->setBackground(0);
m_shapeMap.insert(child, child->boundingRect());
m_shapeSelection->shapeManager()->addShape(child);
......
......@@ -697,9 +697,9 @@ void KisSelectionManager::shapeSelectionChanged()
foreach(KoShape* shape, shapeManager->shapes()) {
if (dynamic_cast<KisShapeSelection*>(shape->parent())) {
if (selectedShapes.contains(shape))
shape->setBorder(border);
shape->setStroke(border);
else
shape->setBorder(0);
shape->setStroke(0);
}
}
updateGUI();
......
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