Skip to content

Commit 62d26a7

Browse files
committed
improved cake
1 parent e8a2fb3 commit 62d26a7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

viewer/vibesgraphicsitem.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,6 +2369,25 @@ bool VibesGraphicsCake::computeProjection(int dimX, int dimY)
23692369

23702370
}
23712371

2372+
{
2373+
QGraphicsEllipseItem * disk = new QGraphicsEllipseItem(center[dimX].toDouble()-length/2.0, center[dimY].toDouble()+length/4., length, length/4.);
2374+
2375+
disk->setPen(empty_pen);
2376+
disk->setBrush(cream_brush);
2377+
disk->setTransformOriginPoint(centerPoint);
2378+
disk->setRotation(orientation);
2379+
this->addToGroup(disk);
2380+
}
2381+
2382+
{
2383+
QGraphicsRectItem * rect = new QGraphicsRectItem(center[dimX].toDouble()-length/2.0, center[dimY].toDouble()+length/4. + length/8., length, length/8.);
2384+
rect->setPen(empty_pen);
2385+
rect->setBrush(cream_brush);
2386+
rect->setTransformOriginPoint(centerPoint);
2387+
rect->setRotation(orientation);
2388+
this->addToGroup(rect);
2389+
}
2390+
23722391
{
23732392
QPainterPath lef_line_details;
23742393
lef_line_details.moveTo(center[dimX].toDouble()-length/2.0, center[dimY].toDouble());

0 commit comments

Comments
 (0)