fix: socket only locks to second socket, smaller node text
This commit is contained in:
@@ -194,7 +194,7 @@ void Network::mouseMoved(QMouseEvent *event)
|
||||
|
||||
if(floatingEdge_)
|
||||
{
|
||||
if(QGraphicsItem* hoverSocket = itemOfType<SocketGraphic>(hoverItems))
|
||||
if(QGraphicsItem* hoverSocket = itemOfType<SocketGraphic>(hoverItems); hoverSocket && hoverSocket!=startSocket_)
|
||||
{
|
||||
floatingEdge_->setFloatPos(hoverSocket->scenePos());
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ void NodeGraphic::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio
|
||||
painter->setPen(QPen(QColor("white")));
|
||||
|
||||
QFont font = painter->font();
|
||||
font.setPixelSize(10);
|
||||
font.setPixelSize(8);
|
||||
painter->setFont(font);
|
||||
// painter->setPen(QPen(QColor("#d2d2d2")));
|
||||
painter->setPen(QPen(QColor("white")));
|
||||
|
||||
Reference in New Issue
Block a user