Browse Source

Change PortTooltip input/output labels.

tags/v2.0.0
Andrew Belt 5 years ago
parent
commit
e875096728
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/app/PortWidget.cpp

+ 5
- 3
src/app/PortWidget.cpp View File

@@ -20,9 +20,9 @@ struct PortTooltip : ui::Tooltip {
engine::Port* port = portWidget->getPort(); engine::Port* port = portWidget->getPort();
engine::PortInfo* portInfo = portWidget->getPortInfo(); engine::PortInfo* portInfo = portWidget->getPortInfo();
// Label // 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 // Description
std::string description = portInfo->getDescription(); std::string description = portInfo->getDescription();
if (description != "") { if (description != "") {
@@ -49,6 +49,8 @@ struct PortTooltip : ui::Tooltip {
text += otherPw->module->model->getFullName(); text += otherPw->module->model->getFullName();
text += ": "; text += ": ";
text += otherPw->getPortInfo()->getName(); text += otherPw->getPortInfo()->getName();
text += " ";
text += (otherPw->type == engine::Port::INPUT) ? "input" : "output";
} }
} }
Tooltip::step(); Tooltip::step();


Loading…
Cancel
Save