removed deprecaded functions
. .
This commit is contained in:
@@ -48,7 +48,6 @@ QGIPrimPath::QGIPrimPath():
|
||||
m_width(0),
|
||||
m_capStyle(Qt::RoundCap),
|
||||
m_fillStyleCurrent (Qt::NoBrush),
|
||||
// m_fillStyleCurrent (Qt::SolidPattern),
|
||||
m_fillOverride(false)
|
||||
{
|
||||
setCacheMode(QGraphicsItem::NoCache);
|
||||
@@ -77,7 +76,6 @@ QGIPrimPath::QGIPrimPath():
|
||||
m_fillStyleCurrent = m_fillNormal;
|
||||
|
||||
m_colDefFill = Qt::white;
|
||||
// m_colDefFill = Qt::transparent;
|
||||
setFillColor(m_colDefFill);
|
||||
|
||||
setPrettyNormal();
|
||||
@@ -85,7 +83,6 @@ QGIPrimPath::QGIPrimPath():
|
||||
|
||||
QVariant QGIPrimPath::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||
{
|
||||
// Base::Console().Message("QGIPP::itemChange(%d) - type: %d\n", change, type() - QGraphicsItem::UserType);
|
||||
if (change == ItemSelectedHasChanged && scene()) {
|
||||
if(isSelected()) {
|
||||
setPrettySel();
|
||||
@@ -98,7 +95,6 @@ QVariant QGIPrimPath::itemChange(GraphicsItemChange change, const QVariant &valu
|
||||
|
||||
void QGIPrimPath::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
// Base::Console().Message("QGIPP::hoverEnter() - selected; %d\n", isSelected());
|
||||
if (!isSelected()) {
|
||||
setPrettyPre();
|
||||
}
|
||||
@@ -107,7 +103,6 @@ void QGIPrimPath::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
|
||||
void QGIPrimPath::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
// Base::Console().Message("QGIPP::hoverLeave() - selected; %d\n", isSelected());
|
||||
if(!isSelected()) {
|
||||
setPrettyNormal();
|
||||
}
|
||||
@@ -115,25 +110,14 @@ void QGIPrimPath::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||
QGraphicsPathItem::hoverLeaveEvent(event);
|
||||
}
|
||||
|
||||
//set highlighted is obsolete
|
||||
void QGIPrimPath::setHighlighted(bool b)
|
||||
{
|
||||
isHighlighted = b;
|
||||
if(isHighlighted) {
|
||||
setPrettySel();
|
||||
} else {
|
||||
setPrettyNormal();
|
||||
}
|
||||
}
|
||||
|
||||
void QGIPrimPath::setPrettyNormal() {
|
||||
// Base::Console().Message("QGIPP::setPrettyNormal()\n");
|
||||
|
||||
m_colCurrent = m_colNormal;
|
||||
m_fillColorCurrent = m_colNormalFill;
|
||||
}
|
||||
|
||||
void QGIPrimPath::setPrettyPre() {
|
||||
// Base::Console().Message("QGIPP::setPrettyPre()\n");
|
||||
m_colCurrent = getPreColor();
|
||||
if (!m_fillOverride) {
|
||||
m_fillColorCurrent = getPreColor();
|
||||
@@ -141,7 +125,6 @@ void QGIPrimPath::setPrettyPre() {
|
||||
}
|
||||
|
||||
void QGIPrimPath::setPrettySel() {
|
||||
// Base::Console().Message("QGIPP::setPrettySel()\n");
|
||||
m_colCurrent = getSelectColor();
|
||||
if (!m_fillOverride) {
|
||||
m_fillColorCurrent = getSelectColor();
|
||||
|
||||
Reference in New Issue
Block a user