mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Ref T286, renaming / adding utility functions in simulator info
This commit is contained in:
@@ -417,7 +417,7 @@ namespace BlackGui
|
||||
Q_ASSERT_X(ownModelSetComp, Q_FUNC_INFO, "Cannot access parent");
|
||||
if (m_setActions.isEmpty())
|
||||
{
|
||||
if (sims.fsx())
|
||||
if (sims.isFSX())
|
||||
{
|
||||
QAction *a = new QAction(CIcons::appModels16(), "FSX models", this);
|
||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||
@@ -435,7 +435,7 @@ namespace BlackGui
|
||||
});
|
||||
m_setNewActions.append(a);
|
||||
}
|
||||
if (sims.p3d())
|
||||
if (sims.isP3D())
|
||||
{
|
||||
QAction *a = new QAction(CIcons::appModels16(), "P3D models", this);
|
||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||
@@ -453,7 +453,7 @@ namespace BlackGui
|
||||
});
|
||||
m_setNewActions.append(a);
|
||||
}
|
||||
if (sims.fs9())
|
||||
if (sims.isFS9())
|
||||
{
|
||||
QAction *a = new QAction(CIcons::appModels16(), "FS9 models", this);
|
||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||
@@ -471,7 +471,7 @@ namespace BlackGui
|
||||
});
|
||||
m_setNewActions.append(a);
|
||||
}
|
||||
if (sims.xplane())
|
||||
if (sims.isXPlane())
|
||||
{
|
||||
QAction *a = new QAction(CIcons::appModels16(), "XPlane models", this);
|
||||
connect(a, &QAction::triggered, ownModelSetComp, [ownModelSetComp](bool checked)
|
||||
|
||||
Reference in New Issue
Block a user