[TechDraw] Remove uneeded redefinitions of inherited functions

This commit is contained in:
Benjamin Bræstrup Sayoc
2022-08-18 00:38:49 +02:00
committed by WandererFan
parent f5c5eec3bb
commit 8f067e02f3
8 changed files with 0 additions and 80 deletions

View File

@@ -59,24 +59,6 @@ QGMarker::QGMarker(int idx) : QGIVertex(idx),
setFlag(QGraphicsItem::ItemIsMovable, true);
}
QVariant QGMarker::itemChange(GraphicsItemChange change, const QVariant &value)
{
// Base::Console().Message("QGMarker::itemChange(%d)\n",change);
return QGIVertex::itemChange(change, value);
}
void QGMarker::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
{
// Base::Console().Message("QGMarker::hoverEnterEvent(%d)\n",getProjIndex());
QGIVertex::hoverEnterEvent(event);
}
void QGMarker::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
{
// Base::Console().Message("QGMarker::hoverLeaveEvent(%d)\n",getProjIndex());
QGIVertex::hoverLeaveEvent(event);
}
void QGMarker::mousePressEvent(QGraphicsSceneMouseEvent * event)
{
// Base::Console().Message("QGMarker::mousePressEvent() - focustype: %d\n",
@@ -94,12 +76,6 @@ void QGMarker::mousePressEvent(QGraphicsSceneMouseEvent * event)
QGIVertex::mousePressEvent(event);
}
void QGMarker::mouseMoveEvent(QGraphicsSceneMouseEvent * event)
{
// Base::Console().Message("QGMarker::mouseMoveEvent(%d)\n", getProjIndex());
QGIVertex::mouseMoveEvent(event);
}
void QGMarker::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
{
if (event->button() == Qt::RightButton) { //we're done
@@ -148,16 +124,6 @@ void QGMarker::setRadius(float r)
setPath(p);
}
void QGMarker::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget)
{
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;
//~ painter->drawRect(boundingRect()); //good for debugging
QGIVertex::paint (painter, &myOption, widget);
}
//******************************************************************************
QGEPath::QGEPath(QGILeaderLine* leader) :
@@ -426,15 +392,6 @@ QPainterPath QGEPath::shape() const
return PreferencesGui::edgeFuzz();
}
void QGEPath::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) {
QStyleOptionGraphicsItem myOption(*option);
myOption.state &= ~QStyle::State_Selected;
// painter->drawRect(boundingRect()); //good for debugging
QGIPrimPath::paint (painter, &myOption, widget);
}
void QGEPath::dumpGhostPoints(const char* text)
{
int idb = 0;