[TechDraw] Remove uneeded redefinitions of inherited functions

This commit is contained in:
Benjamin Bræstrup Sayoc
2022-08-07 20:08:21 +02:00
committed by WandererFan
parent 93fb6b999c
commit b498e85f43
37 changed files with 13 additions and 230 deletions

View File

@@ -54,19 +54,6 @@ QVariant QGMText::itemChange(GraphicsItemChange change, const QVariant &value)
return QGCustomText::itemChange(change, value);
}
void QGMText::mousePressEvent(QGraphicsSceneMouseEvent * event)
{
// if(scene() && this == scene()->mouseGrabberItem()) { //why would we get even if not mousegrabber?
// Q_EMIT dragging();
// }
QGCustomText::mousePressEvent(event);
}
void QGMText::mouseMoveEvent(QGraphicsSceneMouseEvent * event)
{
QGCustomText::mouseMoveEvent(event);
}
void QGMText::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
{
if(scene() && this == scene()->mouseGrabberItem()) {
@@ -78,18 +65,12 @@ void QGMText::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
void QGMText::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
{
Q_EMIT hover(true);
if (!isSelected()) {
setPrettyPre();
}
QGCustomText::hoverEnterEvent(event);
}
void QGMText::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
{
Q_EMIT hover(false);
if (!isSelected()) {
setPrettyNormal();
}
QGCustomText::hoverLeaveEvent(event);
}