feat: add node edges

This commit is contained in:
parker
2025-06-20 23:12:09 +01:00
parent cf876320d8
commit 20c6ad2b64
10 changed files with 211 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ NetworkGraphicsScene::NetworkGraphicsScene()
setSceneRect(sceneWidth_/-2.0f, sceneHeight_/-2.0f, sceneWidth_, sceneHeight_);
setBackgroundBrush(QColor("#1b1b1b"));
setBackgroundBrush(QColor("#282828"));
}
void NetworkGraphicsScene::drawBackground(QPainter *painter, const QRectF &rect)
@@ -26,11 +26,6 @@ void NetworkGraphicsScene::drawBackground(QPainter *painter, const QRectF &rect)
int left = floor(rect.left());
int right = ceil(rect.right());
std::cout << "top: " << top << "\n";
std::cout << "bottom: " << bottom << "\n";
std::cout << "left: " << left << "\n";
std::cout << "right: " << right << "\n";
QPen gridPen(QColor("#323232"));
painter->setPen(gridPen);