mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Cosmetic change.
This commit is contained in:
+9
-9
@@ -21,15 +21,6 @@
|
||||
#include "Mapper.h"
|
||||
#include "MainWindow.h"
|
||||
|
||||
void VertexGraphicsItem::paint(QPainter *painter,
|
||||
const QStyleOptionGraphicsItem *option,
|
||||
QWidget* widget)
|
||||
{
|
||||
Q_UNUSED(widget);
|
||||
if (((ShapeGraphicsItem*)parentItem())->getMapping()->getId() == MainWindow::instance()->getCurrentMappingId())
|
||||
Util::drawControlsVertex(painter, QPointF(0,0), (option->state & QStyle::State_Selected));
|
||||
}
|
||||
|
||||
ShapeGraphicsItem::ShapeGraphicsItem(Mapping::ptr mapping, bool output)
|
||||
: _mapping(mapping), _output(output)
|
||||
{
|
||||
@@ -143,6 +134,15 @@ void ShapeGraphicsItem::_syncVertices()
|
||||
}
|
||||
}
|
||||
|
||||
void VertexGraphicsItem::paint(QPainter *painter,
|
||||
const QStyleOptionGraphicsItem *option,
|
||||
QWidget* widget)
|
||||
{
|
||||
Q_UNUSED(widget);
|
||||
if (((ShapeGraphicsItem*)parentItem())->getMapping()->getId() == MainWindow::instance()->getCurrentMappingId())
|
||||
Util::drawControlsVertex(painter, QPointF(0,0), (option->state & QStyle::State_Selected));
|
||||
}
|
||||
|
||||
QPainterPath PolygonColorGraphicsItem::shape() const
|
||||
{
|
||||
QPainterPath path;
|
||||
|
||||
Reference in New Issue
Block a user