Fix dimension highlighting problems

Derived all lines from PrimPath
This commit is contained in:
WandererFan
2016-08-03 13:05:25 -04:00
committed by wmayer
parent a6b9f5286c
commit 498e37b39c
16 changed files with 278 additions and 87 deletions

View File

@@ -42,7 +42,7 @@ using namespace TechDrawGui;
QGICMark::QGICMark(int index) : QGIVertex(index)
{
m_size = 3.0;
m_thick = 0.75;
m_width = 0.75;
draw();
}
void QGICMark::draw(void)
@@ -63,8 +63,7 @@ void QGICMark::setSize(float s)
void QGICMark::setThick(float t)
{
m_thick = t;
m_pen.setWidthF(m_thick);
m_width = t;
draw();
}
@@ -86,7 +85,5 @@ void QGICMark::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;
m_pen.setWidthF(m_thick);
QGIVertex::paint (painter, &myOption, widget);
}