mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 04:35:41 +08:00
Issue #77 toIcon returns a simple enum instead of a full object
This commit is contained in:
@@ -76,7 +76,7 @@ namespace BlackGui
|
||||
|
||||
QPushButton *button = new QPushButton(this);
|
||||
button->setText(station.getCallsignAsString());
|
||||
if (m_withIcons) { button->setIcon(station.toPixmap()); }
|
||||
if (m_withIcons) { button->setIcon(CIcon(station.toIcon()).toQIcon()); }
|
||||
QObject::connect(button, &QPushButton::released, this, &CAtcButtonComponent::onButtonClicked);
|
||||
const CVariant atcv = CVariant::fromValue(station);
|
||||
layout->addWidget(button, row, col++);
|
||||
|
||||
Reference in New Issue
Block a user