[TD]Welding Symbol creation

This commit is contained in:
wandererfan
2019-07-23 21:24:14 -04:00
committed by WandererFan
parent f046a0e657
commit 992ef1b07e
67 changed files with 5457 additions and 50 deletions

View File

@@ -35,15 +35,16 @@
#include <Base/Console.h>
//#include <Base/Parameter.h>
#include "QGIPrimPath.h"
#include "QGIVertex.h"
using namespace TechDrawGui;
QGIVertex::QGIVertex(int index) :
projIndex(index),
m_radius(2),
m_fill(Qt::SolidPattern)
m_radius(2)
{
m_fill = Qt::SolidPattern;
m_brush.setStyle(m_fill);
setRadius(m_radius);
@@ -62,8 +63,11 @@ void QGIVertex::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;
m_brush.setColor(m_colCurrent);
m_brush.setStyle(m_fill);
setBrush(m_brush);
// painter->setPen(Qt::blue);
// painter->drawRect(boundingRect()); //good for debugging
// m_brush.setColor(m_colCurrent);
// m_brush.setStyle(m_fill);
// setBrush(m_brush);
QGIPrimPath::paint (painter, &myOption, widget);
}