mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-17 02:49:34 -04: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
4 changed files with 6 additions and 2 deletions
|
@ -116,7 +116,8 @@ void Arrow::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *
|
||||||
|
|
||||||
// Draw the line itself
|
// Draw the line itself
|
||||||
QLineF line(sourcePoint, destPoint);
|
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);
|
painter->drawLine(line);
|
||||||
|
|
||||||
// Draw the arrows if there's enough room
|
// Draw the arrows if there's enough room
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
|
|
||||||
void adjust();
|
void adjust();
|
||||||
|
|
||||||
enum { Type = UserType + 2 };
|
enum { Type = UserType + 3 };
|
||||||
int type() const { return Type; }
|
int type() const { return Type; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -99,6 +99,7 @@ bool GraphWidget::clearGraph()
|
||||||
|
|
||||||
nodeMap.clear();
|
nodeMap.clear();
|
||||||
edgeList.clear();
|
edgeList.clear();
|
||||||
|
arrowList.clear();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,6 +251,8 @@ QVariant Node::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||||
case ItemPositionHasChanged:
|
case ItemPositionHasChanged:
|
||||||
foreach (Edge *edge, edgeList)
|
foreach (Edge *edge, edgeList)
|
||||||
edge->adjust();
|
edge->adjust();
|
||||||
|
foreach (Arrow *arrow, arrowList)
|
||||||
|
arrow->adjust();
|
||||||
graph->itemMoved();
|
graph->itemMoved();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue