mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 05:44:29 -05:00
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:
parent
a436053e8b
commit
cf60b0a0b9
@ -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
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
|
||||
void adjust();
|
||||
|
||||
enum { Type = UserType + 2 };
|
||||
enum { Type = UserType + 3 };
|
||||
int type() const { return Type; }
|
||||
|
||||
protected:
|
||||
|
@ -99,6 +99,7 @@ bool GraphWidget::clearGraph()
|
||||
|
||||
nodeMap.clear();
|
||||
edgeList.clear();
|
||||
arrowList.clear();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user