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