Fixed line tool

preferencesAboutTextFull
Craig Watson 8 years ago
parent 483973e516
commit 8b57776939
  1. 7
      src/domain/UBGraphicsScene.cpp

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

Loading…
Cancel
Save