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

@@ -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);

View File

@@ -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);