Reduced pin name character limit for Insight target widgets.

Also some other bits of cleaning
This commit is contained in:
Nav
2021-06-27 20:11:08 +01:00
parent 5859af7c45
commit 2a294e1ea0
3 changed files with 3 additions and 5 deletions

View File

@@ -9,6 +9,6 @@ If no such environment exists, Bloom will exit.
Commands: Commands:
--help, -h Displays this help text. --help, -h Displays this help text.
--version, -v Displays the current version number. --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. For more information on getting started with Bloom, please visit https://bloom.oscillate.io/docs/getting-started.

View File

@@ -33,7 +33,6 @@ PinWidget::PinWidget(QWidget* parent, const TargetPinDescriptor& pinDescriptor,
this->pinNameLabel->setToolTip(pinName); this->pinNameLabel->setToolTip(pinName);
if (pinName.size() > 4) { if (pinName.size() > 4) {
pinName.truncate(4); pinName.truncate(4);
pinName.append('.');
} }
this->pinNameLabel->setText(pinName); this->pinNameLabel->setText(pinName);
this->pinNameLabel->setAlignment(Qt::AlignmentFlag::AlignCenter); this->pinNameLabel->setAlignment(Qt::AlignmentFlag::AlignCenter);

View File

@@ -33,9 +33,8 @@ PinWidget::PinWidget(QWidget* parent, const TargetPinDescriptor& pinDescriptor,
this->pinNameLabel = new QLabel(this); this->pinNameLabel = new QLabel(this);
this->pinNameLabel->setObjectName("target-pin-name"); this->pinNameLabel->setObjectName("target-pin-name");
this->pinNameLabel->setToolTip(pinName); this->pinNameLabel->setToolTip(pinName);
if (pinName.size() > 5) { if (pinName.size() > 4) {
pinName.truncate(5); pinName.truncate(4);
pinName.append('.');
} }
this->pinNameLabel->setText(pinName); this->pinNameLabel->setText(pinName);
this->pinNameLabel->setAlignment(Qt::AlignmentFlag::AlignCenter); this->pinNameLabel->setAlignment(Qt::AlignmentFlag::AlignCenter);