19#include "CommunicationIndicator.hpp"
20#include "src/ui/Constants.hpp"
31 QLineF line(to, from);
33 QLineF headFirst = line.normalVector();
34 headFirst.setLength(headLength);
35 headFirst.setAngle(headFirst.angle() + 45 + 180);
37 auto headSecond = QLineF(headFirst);
38 headSecond.setAngle(headSecond.angle() + 90);
40 arrow << from << to << headFirst.p2() << to << headSecond.p2() << to;
CommunicationIndicator(Communication *communication, QPointF from, QPointF to, qreal headLength=10)
Class representing any (successful or unsuccessful) communication.
A generic indicator bundling common interaction behaviours.