Commit 58b345b1 authored by Ralf Habacker's avatar Ralf Habacker

Make QGraphicsScene related event handlers of class AssociationWidget protected

parent d9c10055
......@@ -191,12 +191,6 @@ public:
bool isPointAddable();
bool isPointRemovable();
//:TODO: the following four methods should be protected
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
virtual void setSelected(bool _select);
public Q_SLOTS: //:TODO: all virtual?
virtual void slotMenuSelection(QAction* action);
......@@ -212,6 +206,11 @@ protected:
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
private:
QPointF calculateTextPosition(Uml::TextRole::Enum role);
void setTextPosition(Uml::TextRole::Enum role);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment