mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Ref T131, formatting
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
namespace XSwiftBus
|
namespace XSwiftBus
|
||||||
{
|
{
|
||||||
|
|
||||||
CService::CService(QObject *parent) : QObject(parent)
|
CService::CService(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
m_messages.addMessage( { "xswiftbus started.", 0, 255, 255 } );
|
m_messages.addMessage( { "xswiftbus started.", 0, 255, 255 } );
|
||||||
|
|||||||
@@ -54,14 +54,14 @@ namespace XSwiftBus
|
|||||||
//! DBus interface name
|
//! DBus interface name
|
||||||
static const QString &InterfaceName()
|
static const QString &InterfaceName()
|
||||||
{
|
{
|
||||||
static QString s(XSWIFTBUS_SERVICE_INTERFACENAME);
|
static const QString s(XSWIFTBUS_SERVICE_INTERFACENAME);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
//! DBus object path
|
//! DBus object path
|
||||||
static const QString &ObjectPath()
|
static const QString &ObjectPath()
|
||||||
{
|
{
|
||||||
static QString s(XSWIFTBUS_SERVICE_OBJECTPATH);
|
static const QString s(XSWIFTBUS_SERVICE_OBJECTPATH);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,8 @@ namespace XSwiftBus
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Emitted when the model or livery changes.
|
//! Emitted when the model or livery changes.
|
||||||
void aircraftModelChanged(const QString &path, const QString &filename, const QString &livery,
|
void aircraftModelChanged(
|
||||||
|
const QString &path, const QString &filename, const QString &livery,
|
||||||
const QString &icao, const QString &modelString, const QString &name, const QString &description);
|
const QString &icao, const QString &modelString, const QString &name, const QString &description);
|
||||||
|
|
||||||
//! Airports in range updated.
|
//! Airports in range updated.
|
||||||
@@ -228,10 +229,12 @@ namespace XSwiftBus
|
|||||||
QList<double> getEngineN1Percentage() const
|
QList<double> getEngineN1Percentage() const
|
||||||
{
|
{
|
||||||
QList<double> list;
|
QList<double> list;
|
||||||
list.reserve(getNumberOfEngines());
|
const int number = getNumberOfEngines();
|
||||||
for (int engineNumber = 0; engineNumber < getNumberOfEngines(); ++engineNumber)
|
list.reserve(number);
|
||||||
|
for (int engineNumber = 0; engineNumber < number; ++engineNumber)
|
||||||
|
{
|
||||||
list.append(m_enginesN1Percentage.getAt(engineNumber));
|
list.append(m_enginesN1Percentage.getAt(engineNumber));
|
||||||
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user