Ref T438, allow to collapse "Message to" button area and disable icons

This commit is contained in:
Klaus Basan
2018-11-23 19:57:33 +01:00
parent 62860eb30b
commit 3edbd09732
5 changed files with 53 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ namespace BlackGui
QPushButton *button = new QPushButton(this);
button->setText(station.getCallsignAsString());
button->setIcon(station.toPixmap());
if (m_withIcons) { button->setIcon(station.toPixmap()); }
QObject::connect(button, &QPushButton::released, this, &CAtcButtonComponent::onButtonClicked);
const CVariant atcv = CVariant::fromValue(station);
layout->addWidget(button, row, col++);