From e875096728b9b1c7c3f46699e1610f7ccb3f8e06 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 17 Dec 2019 16:49:57 -0500 Subject: [PATCH] Change PortTooltip input/output labels. --- src/app/PortWidget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/PortWidget.cpp b/src/app/PortWidget.cpp index fc85243a..7146ed25 100644 --- a/src/app/PortWidget.cpp +++ b/src/app/PortWidget.cpp @@ -20,9 +20,9 @@ struct PortTooltip : ui::Tooltip { engine::Port* port = portWidget->getPort(); engine::PortInfo* portInfo = portWidget->getPortInfo(); // Label - text = (portWidget->type == engine::Port::INPUT) ? "Input" : "Output"; - text += ": "; - text += portInfo->getName(); + text = portInfo->getName(); + text += " "; + text += (portWidget->type == engine::Port::INPUT) ? "input" : "output"; // Description std::string description = portInfo->getDescription(); if (description != "") { @@ -49,6 +49,8 @@ struct PortTooltip : ui::Tooltip { text += otherPw->module->model->getFullName(); text += ": "; text += otherPw->getPortInfo()->getName(); + text += " "; + text += (otherPw->type == engine::Port::INPUT) ? "input" : "output"; } } Tooltip::step();