QGIArrow inherits QGIPrimPath

This commit is contained in:
WandererFan
2016-08-02 08:10:45 -04:00
committed by wmayer
parent ff12c020e0
commit a4a3cc6f88
6 changed files with 97 additions and 58 deletions

View File

@@ -40,7 +40,8 @@
using namespace TechDrawGui;
QGIPrimPath::QGIPrimPath()
QGIPrimPath::QGIPrimPath():
m_width(0)
{
setCacheMode(QGraphicsItem::NoCache);
setFlag(QGraphicsItem::ItemIsSelectable, true);
@@ -56,6 +57,7 @@ QGIPrimPath::QGIPrimPath()
m_styleCurrent = Qt::SolidLine;
m_pen.setStyle(m_styleCurrent);
m_pen.setCapStyle(Qt::RoundCap);
m_pen.setWidthF(m_width);
}
QVariant QGIPrimPath::itemChange(GraphicsItemChange change, const QVariant &value)
@@ -148,6 +150,12 @@ QColor QGIPrimPath::getSelectColor()
return fcColor.asValue<QColor>();
}
void QGIPrimPath::setWidth(double w)
{
m_width = w;
m_pen.setWidthF(m_width);
}
Base::Reference<ParameterGrp> QGIPrimPath::getParmGroup()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()