Commit 8b577769 authored by Craig Watson's avatar Craig Watson

Fixed line tool

parent 483973e5
......@@ -548,6 +548,11 @@ bool UBGraphicsScene::inputDeviceMove(const QPointF& scenePos, const qreal& pres
if(dc->mActiveRuler){
dc->mActiveRuler->DrawLine(position, width);
}
else if (currentTool == UBStylusTool::Line) {
drawLineTo(position, width, true);
}
else{
UBInterpolator::InterpolationMethod interpolator = UBInterpolator::NoInterpolation;
......@@ -1150,6 +1155,8 @@ void UBGraphicsScene::initPolygonItem(UBGraphicsPolygonItem* polygonItem)
polygonItem->setColor(colorOnLightBG);
}
//polygonItem->setColor(QColor(rand()%256, rand()%256, rand()%256, polygonItem->brush().color().alpha()));
polygonItem->setColorOnDarkBackground(colorOnDarkBG);
polygonItem->setColorOnLightBackground(colorOnLightBG);
......
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