mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
400a8fc2a8
commit
d71e5f289a
@@ -77,6 +77,7 @@ namespace BlackGui
|
||||
QPushButton *button = new QPushButton(this);
|
||||
button->setText(station.getCallsignAsString());
|
||||
if (m_withIcons) { button->setIcon(station.toPixmap()); }
|
||||
// else { button->setStyleSheet("text-align: left;"); }
|
||||
QObject::connect(button, &QPushButton::released, this, &CAtcButtonComponent::onButtonClicked);
|
||||
const CVariant atcv = CVariant::fromValue(station);
|
||||
layout->addWidget(button, row, col++);
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#include <QTimer>
|
||||
#include <QList>
|
||||
|
||||
namespace BlackMisc { namespace Aviation { class CCallsign; } }
|
||||
namespace Ui { class CAtcStationComponent; }
|
||||
namespace BlackMisc { namespace Aviation { class CCallsign; } }
|
||||
namespace BlackGui
|
||||
{
|
||||
class CDockWidgetInfoArea;
|
||||
|
||||
@@ -37,8 +37,7 @@ namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
CDbAirlineIcaoSelectorBase::CDbAirlineIcaoSelectorBase(QWidget *parent) :
|
||||
QFrame(parent)
|
||||
CDbAirlineIcaoSelectorBase::CDbAirlineIcaoSelectorBase(QWidget *parent) : QFrame(parent)
|
||||
{
|
||||
this->setAcceptDrops(true);
|
||||
this->setAcceptedMetaTypeIds({qMetaTypeId<CAirlineIcaoCode>(), qMetaTypeId<CAirlineIcaoCodeList>()});
|
||||
|
||||
@@ -35,13 +35,13 @@ namespace BlackGui
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
CEnableForViewBasedIndicator(BlackGui::Views::CViewBaseNonTemplate *viewWithIndicator = nullptr);
|
||||
CEnableForViewBasedIndicator(Views::CViewBaseNonTemplate *viewWithIndicator = nullptr);
|
||||
|
||||
//! Set the corresponding view
|
||||
void setViewWithIndicator(BlackGui::Views::CViewBaseNonTemplate *viewWithIndicator);
|
||||
|
||||
private:
|
||||
BlackGui::Views::CViewBaseNonTemplate *m_viewWithIndicator = nullptr;
|
||||
Views::CViewBaseNonTemplate *m_viewWithIndicator = nullptr;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user