From 75d18b45fb8d07ecef720a4194c9136d656f44e2 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 30 Apr 2022 13:24:18 +0100 Subject: [PATCH] Adjusted QFP pin body widget size --- .../InsightWindow/Widgets/TargetWidgets/QFP/PinBodyWidget.hpp | 4 ++-- .../InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinBodyWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinBodyWidget.hpp index 56bfb763..9715fb38 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinBodyWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinBodyWidget.hpp @@ -15,8 +15,8 @@ namespace Bloom::Widgets::InsightTargetWidgets::Qfp Q_OBJECT public: - static const int WIDTH = 19; - static const int HEIGHT = 28; + static const int WIDTH = 17; + static const int HEIGHT = 26; PinBodyWidget(QWidget* parent, Targets::TargetPinDescriptor pinDescriptor, bool isVertical); diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.cpp index b6a99edf..a99c693f 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.cpp @@ -80,7 +80,7 @@ namespace Bloom::Widgets::InsightTargetWidgets::Qfp if (this->position == Position::LEFT || this->position == Position::RIGHT) { this->pinNumberLabel->setFixedSize( PinWidget::MAXIMUM_PIN_NUMBER_LABEL_WIDTH, - PinWidget::MAXIMUM_HORIZONTAL_HEIGHT / 2 + PinWidget::MAXIMUM_HORIZONTAL_HEIGHT ); } else if (this->position == Position::TOP || this->position == Position::BOTTOM) {