mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
8dd0a06c81
commit
087410039c
@@ -111,8 +111,9 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CAutoPublishComponent::onAutoPublished(bool success, const QString &url, const CStatusMessageList &msgs)
|
void CAutoPublishComponent::onAutoPublished(bool success, const QString &url, const CStatusMessageList &msgs)
|
||||||
{
|
{
|
||||||
Q_UNUSED(url);
|
Q_UNUSED(url)
|
||||||
Q_UNUSED(success);
|
Q_UNUSED(success)
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
QPointer<CAutoPublishComponent> myself(this);
|
QPointer<CAutoPublishComponent> myself(this);
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CDbOwnModelSetComponent::tabIndexChanged(int index)
|
void CDbOwnModelSetComponent::tabIndexChanged(int index)
|
||||||
{
|
{
|
||||||
Q_UNUSED(index);
|
Q_UNUSED(index)
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDbOwnModelSetComponent::buttonClicked()
|
void CDbOwnModelSetComponent::buttonClicked()
|
||||||
@@ -279,8 +279,9 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CDbOwnModelSetComponent::onRowCountChanged(int count, bool withFilter)
|
void CDbOwnModelSetComponent::onRowCountChanged(int count, bool withFilter)
|
||||||
{
|
{
|
||||||
Q_UNUSED(count);
|
Q_UNUSED(count)
|
||||||
Q_UNUSED(withFilter);
|
Q_UNUSED(withFilter)
|
||||||
|
|
||||||
const int realUnfilteredCount = ui->tvp_OwnModelSet->container().size();
|
const int realUnfilteredCount = ui->tvp_OwnModelSet->container().size();
|
||||||
const bool canSave = this->getModelSetSimulator().isSingleSimulator() && (realUnfilteredCount > 0);
|
const bool canSave = this->getModelSetSimulator().isSingleSimulator() && (realUnfilteredCount > 0);
|
||||||
ui->pb_SaveAsSetForSimulator->setEnabled(canSave);
|
ui->pb_SaveAsSetForSimulator->setEnabled(canSave);
|
||||||
@@ -508,7 +509,7 @@ namespace BlackGui
|
|||||||
QAction *a = new QAction(CIcons::appModels16(), "FSX models", this);
|
QAction *a = new QAction(CIcons::appModels16(), "FSX models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FSX));
|
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FSX));
|
||||||
});
|
});
|
||||||
m_setActions.append(a);
|
m_setActions.append(a);
|
||||||
@@ -516,7 +517,7 @@ namespace BlackGui
|
|||||||
a = new QAction(CIcons::appModels16(), "New set FSX models", this);
|
a = new QAction(CIcons::appModels16(), "New set FSX models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FSX));
|
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FSX));
|
||||||
});
|
});
|
||||||
m_setNewActions.append(a);
|
m_setNewActions.append(a);
|
||||||
@@ -526,7 +527,7 @@ namespace BlackGui
|
|||||||
QAction *a = new QAction(CIcons::appModels16(), "P3D models", this);
|
QAction *a = new QAction(CIcons::appModels16(), "P3D models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::P3D));
|
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::P3D));
|
||||||
});
|
});
|
||||||
m_setActions.append(a);
|
m_setActions.append(a);
|
||||||
@@ -534,7 +535,7 @@ namespace BlackGui
|
|||||||
a = new QAction(CIcons::appModels16(), "New set P3D models", this);
|
a = new QAction(CIcons::appModels16(), "New set P3D models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::P3D));
|
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::P3D));
|
||||||
});
|
});
|
||||||
m_setNewActions.append(a);
|
m_setNewActions.append(a);
|
||||||
@@ -544,7 +545,7 @@ namespace BlackGui
|
|||||||
QAction *a = new QAction(CIcons::appModels16(), "FS9 models", this);
|
QAction *a = new QAction(CIcons::appModels16(), "FS9 models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FS9));
|
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FS9));
|
||||||
});
|
});
|
||||||
m_setActions.append(a);
|
m_setActions.append(a);
|
||||||
@@ -552,7 +553,7 @@ namespace BlackGui
|
|||||||
a = new QAction(CIcons::appModels16(), "New set FS9 models", this);
|
a = new QAction(CIcons::appModels16(), "New set FS9 models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FS9));
|
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FS9));
|
||||||
});
|
});
|
||||||
m_setNewActions.append(a);
|
m_setNewActions.append(a);
|
||||||
@@ -562,7 +563,7 @@ namespace BlackGui
|
|||||||
QAction *a = new QAction(CIcons::appModels16(), "XPlane models", this);
|
QAction *a = new QAction(CIcons::appModels16(), "XPlane models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::XPLANE));
|
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::XPLANE));
|
||||||
});
|
});
|
||||||
m_setActions.append(a);
|
m_setActions.append(a);
|
||||||
@@ -570,7 +571,7 @@ namespace BlackGui
|
|||||||
a = new QAction(CIcons::appModels16(), "New set XPlane models", this);
|
a = new QAction(CIcons::appModels16(), "New set XPlane models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::XPLANE));
|
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::XPLANE));
|
||||||
});
|
});
|
||||||
m_setNewActions.append(a);
|
m_setNewActions.append(a);
|
||||||
@@ -580,7 +581,7 @@ namespace BlackGui
|
|||||||
QAction *a = new QAction(CIcons::appModels16(), "FG models", this);
|
QAction *a = new QAction(CIcons::appModels16(), "FG models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FG));
|
ownModelSetComp->setSimulator(CSimulatorInfo(CSimulatorInfo::FG));
|
||||||
});
|
});
|
||||||
m_setActions.append(a);
|
m_setActions.append(a);
|
||||||
@@ -588,7 +589,7 @@ namespace BlackGui
|
|||||||
a = new QAction(CIcons::appModels16(), "New set FG models", this);
|
a = new QAction(CIcons::appModels16(), "New set FG models", this);
|
||||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked)
|
||||||
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FG));
|
ownModelSetComp->setModelSet(CAircraftModelList(), CSimulatorInfo(CSimulatorInfo::FG));
|
||||||
});
|
});
|
||||||
m_setNewActions.append(a);
|
m_setNewActions.append(a);
|
||||||
|
|||||||
Reference in New Issue
Block a user