Fix linux build.
This commit is contained in:
parent
c5363327e8
commit
198caa700b
16 changed files with 34 additions and 24 deletions
|
@ -15,7 +15,7 @@ void CanvasDrawingArea::addShapeAt(unsigned x, unsigned y)
|
|||
{
|
||||
if (mActiveDrawingCommand == CanvasDrawCommand::CIRCLE)
|
||||
{
|
||||
auto circle = std::make_unique<CircleNode>(Transform(DiscretePoint(x, y)), 5);
|
||||
auto circle = std::make_unique<CircleNode>(Transform(Point2(x, y)), 5);
|
||||
circle->setFillColor(Color(255, 0, 0));
|
||||
circle->setName("CanvasDrawingArea_CircleNode");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ void ImageViewWidget::doPaint(const PaintEvent* event)
|
|||
|
||||
if (!mGridNode)
|
||||
{
|
||||
mGridNode = std::make_unique<GridNode>(Transform(mLocation));
|
||||
mGridNode = std::make_unique<GridNode>(Transform(Point3(mLocation)));
|
||||
mGridNode->setName(mName + "_GridNode");
|
||||
mGridNode->setNumX(mNumX);
|
||||
mGridNode->setNumY(mNumY);
|
||||
|
|
|
@ -34,7 +34,7 @@ void MeshViewerView::doPaint(const PaintEvent* event)
|
|||
|
||||
if (!mMeshNode)
|
||||
{
|
||||
mMeshNode = std::make_unique<MeshNode>(Transform(mLocation));
|
||||
mMeshNode = std::make_unique<MeshNode>(Transform(Point3(mLocation)));
|
||||
mMeshNode->setName(mName + "_MeshNode");
|
||||
|
||||
mMeshNode->setWidth(mSize.mWidth);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue