mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
refs #328 CAircraftParts value classes
This commit is contained in:
committed by
Klaus Basan
parent
16042c1fb2
commit
0a46a4a0bd
33
src/blackmisc/aviation/aircraftparts.cpp
Normal file
33
src/blackmisc/aviation/aircraftparts.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Copyright (C) 2014
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "aircraftparts.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Aviation
|
||||
{
|
||||
QString CAircraftParts::convertToQString(bool i18n) const
|
||||
{
|
||||
QString s;
|
||||
s += m_lights.toQString(i18n);
|
||||
s += " gear down: ";
|
||||
s += m_gearDown;
|
||||
s += " flaps pct: ";
|
||||
s += m_flapsPercent;
|
||||
s += " spoilers out: ";
|
||||
s += m_spoilersOut;
|
||||
s += " engines on: ";
|
||||
s += m_engines.toQString(i18n);
|
||||
s += " on ground: ";
|
||||
s += m_isOnGround;
|
||||
return s;
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user