From 2a294e1ea03331a7c758c633a21c3e52b9dbfba5 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 27 Jun 2021 20:11:08 +0100 Subject: [PATCH] Reduced pin name character limit for Insight target widgets. Also some other bits of cleaning --- resources/help.txt | 2 +- .../InsightWindow/TargetWidgets/DIP/PinWidget.cpp | 1 - .../InsightWindow/TargetWidgets/QFP/PinWidget.cpp | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/help.txt b/resources/help.txt index c8697a04..143867b6 100644 --- a/resources/help.txt +++ b/resources/help.txt @@ -9,6 +9,6 @@ If no such environment exists, Bloom will exit. Commands: --help, -h Displays this help text. --version, -v Displays the current version number. - init Creates a new Bloom project configuration file (bloom.json) in the working directory. + init Creates a new Bloom project configuration file (bloom.json), in the working directory. For more information on getting started with Bloom, please visit https://bloom.oscillate.io/docs/getting-started. diff --git a/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/DIP/PinWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/DIP/PinWidget.cpp index 3be0cafd..1f8efa2d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/DIP/PinWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/DIP/PinWidget.cpp @@ -33,7 +33,6 @@ PinWidget::PinWidget(QWidget* parent, const TargetPinDescriptor& pinDescriptor, this->pinNameLabel->setToolTip(pinName); if (pinName.size() > 4) { pinName.truncate(4); - pinName.append('.'); } this->pinNameLabel->setText(pinName); this->pinNameLabel->setAlignment(Qt::AlignmentFlag::AlignCenter); diff --git a/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/QFP/PinWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/QFP/PinWidget.cpp index ab7ea67e..76d30b81 100644 --- a/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/QFP/PinWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/TargetWidgets/QFP/PinWidget.cpp @@ -33,9 +33,8 @@ PinWidget::PinWidget(QWidget* parent, const TargetPinDescriptor& pinDescriptor, this->pinNameLabel = new QLabel(this); this->pinNameLabel->setObjectName("target-pin-name"); this->pinNameLabel->setToolTip(pinName); - if (pinName.size() > 5) { - pinName.truncate(5); - pinName.append('.'); + if (pinName.size() > 4) { + pinName.truncate(4); } this->pinNameLabel->setText(pinName); this->pinNameLabel->setAlignment(Qt::AlignmentFlag::AlignCenter);