Add preference settings
- autodistribute, vertex size, vertex color
This commit is contained in:
committed by
Yorik van Havre
parent
8e2586ccc7
commit
ecb29f1dbf
@@ -52,6 +52,8 @@ QGIPrimPath::QGIPrimPath():
|
||||
|
||||
isHighlighted = false;
|
||||
|
||||
m_colNormal = Qt::white;
|
||||
m_colOverride = false;
|
||||
m_colCurrent = getNormalColor();
|
||||
m_styleCurrent = Qt::SolidLine;
|
||||
m_pen.setStyle(m_styleCurrent);
|
||||
@@ -130,8 +132,15 @@ void QGIPrimPath::paint ( QPainter * painter, const QStyleOptionGraphicsItem * o
|
||||
|
||||
QColor QGIPrimPath::getNormalColor()
|
||||
{
|
||||
|
||||
QColor result;
|
||||
QGIView *parent;
|
||||
|
||||
if (m_colOverride) {
|
||||
result = m_colNormal;
|
||||
return result;
|
||||
}
|
||||
|
||||
QGraphicsItem* qparent = parentItem();
|
||||
if (qparent == nullptr) {
|
||||
parent = nullptr;
|
||||
@@ -205,6 +214,13 @@ void QGIPrimPath::setStyle(Qt::PenStyle s)
|
||||
m_styleCurrent = s;
|
||||
}
|
||||
|
||||
void QGIPrimPath::setNormalColor(QColor c)
|
||||
{
|
||||
m_colNormal = c;
|
||||
m_colOverride = true;
|
||||
}
|
||||
|
||||
|
||||
Base::Reference<ParameterGrp> QGIPrimPath::getParmGroup()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
|
||||
Reference in New Issue
Block a user