mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #237, fixed typo and naming (driver->plugin)
This commit is contained in:
@@ -22,7 +22,7 @@ namespace BlackSim
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
QString s("Sel.driver:");
|
||||
s.append(" ").append(m_selectedDriver.toQString(i18n));
|
||||
s.append(" ").append(m_selectedPlugin.toQString(i18n));
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace BlackSim
|
||||
*/
|
||||
void CSettingsSimulator::initDefaultValues()
|
||||
{
|
||||
this->m_selectedDriver = CSimulatorInfo::FSX();
|
||||
this->m_selectedPlugin = CSimulatorInfo::FSX();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -149,9 +149,9 @@ namespace BlackSim
|
||||
if (command == CSettingUtilities::CmdUpdate())
|
||||
{
|
||||
CSimulatorInfo v = value.value<CSimulatorInfo>();
|
||||
changedFlag = (v != this->m_selectedDriver);
|
||||
changedFlag = (v != this->m_selectedPlugin);
|
||||
msgs.push_back(CSettingUtilities::valueChangedMessage(changedFlag, "selected driver"));
|
||||
this->m_selectedDriver = v;
|
||||
this->m_selectedPlugin = v;
|
||||
return msgs;
|
||||
}
|
||||
return msgs;
|
||||
|
||||
@@ -38,10 +38,10 @@ namespace BlackSim
|
||||
virtual QVariant toQVariant() const override { return QVariant::fromValue(*this); }
|
||||
|
||||
//! Selected driver
|
||||
BlackSim::CSimulatorInfo getSelectedDriver() const { return this->m_selectedDriver; }
|
||||
BlackSim::CSimulatorInfo getSelectedPlugin() const { return this->m_selectedPlugin; }
|
||||
|
||||
//! Selected driver
|
||||
bool setSelectedDriver(const BlackSim::CSimulatorInfo &driver) { this->m_selectedDriver = driver; }
|
||||
void setSelectedPlugin(const BlackSim::CSimulatorInfo &plugin) { this->m_selectedPlugin = plugin; }
|
||||
|
||||
//! Equal operator ==
|
||||
bool operator ==(const CSettingsSimulator &other) const;
|
||||
@@ -91,13 +91,13 @@ namespace BlackSim
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CSettingsSimulator)
|
||||
BlackSim::CSimulatorInfo m_selectedDriver;
|
||||
BlackSim::CSimulatorInfo m_selectedPlugin;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackSim::Settings::CSettingsSimulator)
|
||||
BLACK_DECLARE_TUPLE_CONVERSION(BlackSim::Settings::CSettingsSimulator, (o.m_selectedDriver))
|
||||
BLACK_DECLARE_TUPLE_CONVERSION(BlackSim::Settings::CSettingsSimulator, (o.m_selectedPlugin))
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user