Fixes to the PGP Network View.

* Made Signature Arrows Red.
 * they now move around correctly too.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1398 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2009-07-21 21:22:28 +00:00
parent a436053e8b
commit cf60b0a0b9
4 changed files with 6 additions and 2 deletions

View File

@ -116,7 +116,8 @@ void Arrow::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *
// Draw the line itself
QLineF line(sourcePoint, destPoint);
painter->setPen(QPen(Qt::black, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
//painter->setPen(QPen(Qt::black, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
painter->setPen(QPen(Qt::red, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
painter->drawLine(line);
// Draw the arrows if there's enough room

View File

@ -55,7 +55,7 @@ public:
void adjust();
enum { Type = UserType + 2 };
enum { Type = UserType + 3 };
int type() const { return Type; }
protected:

View File

@ -99,6 +99,7 @@ bool GraphWidget::clearGraph()
nodeMap.clear();
edgeList.clear();
arrowList.clear();
return true;
}

View File

@ -251,6 +251,8 @@ QVariant Node::itemChange(GraphicsItemChange change, const QVariant &value)
case ItemPositionHasChanged:
foreach (Edge *edge, edgeList)
edge->adjust();
foreach (Arrow *arrow, arrowList)
arrow->adjust();
graph->itemMoved();
break;
default: