Decreased the size of pin body widgets for the DIP target package widget

Also moved the pin labels around to make best use of the space
This commit is contained in:
Nav
2021-10-23 12:45:01 +01:00
parent 077127315c
commit 56a3c7d6ce
5 changed files with 79 additions and 23 deletions

View File

@@ -31,7 +31,7 @@ void BodyWidget::drawWidget(QPainter& painter) {
painter.setPen(Qt::PenStyle::NoPen);
painter.setBrush(targetBodyColor);
auto targetBodyHeight = this->height();
const auto targetBodyHeight = this->height();
auto targetBodyPoint = QPoint(
0,
@@ -50,14 +50,14 @@ void BodyWidget::drawWidget(QPainter& painter) {
painter.drawEllipse(QRectF(
targetBodyPoint.x() + 10,
targetBodyPoint.y() + (targetBodyHeight - 30),
20,
20
18,
18
));
painter.drawEllipse(QRectF(
targetBodyPoint.x() - 15,
targetBodyPoint.y() + (targetBodyHeight / 2) - 15,
30,
30
28,
28
));
}