mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
/* Copyright (C) 2013 VATSIM Community
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "blackmiscfreefunctions.h"
|
|
#include "avtrack.h"
|
|
|
|
using BlackMisc::PhysicalQuantities::CAngle;
|
|
using BlackMisc::PhysicalQuantities::CAngleUnit;
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Aviation
|
|
{
|
|
/*
|
|
* Own implementation for streaming
|
|
*/
|
|
QString CTrack::convertToQString(bool i18n) const
|
|
{
|
|
QString s = CAngle::convertToQString(i18n).append(" ");
|
|
if (i18n)
|
|
{
|
|
return s.append(this->isMagneticTrack() ?
|
|
QCoreApplication::translate("Aviation", "magnetic") :
|
|
QCoreApplication::translate("Aviation", "true"));
|
|
}
|
|
else
|
|
{
|
|
return s.append(this->isMagneticTrack() ? "magnetic" : "true");
|
|
}
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace
|