mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Typos, QStringBuilder
This commit is contained in:
@@ -21,7 +21,6 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
|
||||||
CCockpitComponent::CCockpitComponent(QWidget *parent) :
|
CCockpitComponent::CCockpitComponent(QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
CEnableForDockWidgetInfoArea(),
|
CEnableForDockWidgetInfoArea(),
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="lbl_SimulatorDirectory">
|
<widget class="QLabel" name="lbl_SimulatorDirectory">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Simulator directory;</string>
|
<string>Simulator directory:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
#include <QHostInfo>
|
#include <QHostInfo>
|
||||||
|
#include <QStringBuilder>
|
||||||
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
{
|
{
|
||||||
@@ -76,11 +77,11 @@ namespace BlackMisc
|
|||||||
QString CIdentifier::convertToQString(bool i18n) const
|
QString CIdentifier::convertToQString(bool i18n) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(i18n);
|
Q_UNUSED(i18n);
|
||||||
QString s(m_name);
|
const QString s = m_name %
|
||||||
s.append(" ").append(m_machineIdBase64);
|
QLatin1Char(' ') % m_machineIdBase64 %
|
||||||
s.append(" ").append(m_machineName);
|
QLatin1Char(' ') % m_machineName %
|
||||||
s.append(" ").append(QString::number(m_processId));
|
QLatin1Char(' ') % QString::number(m_processId) %
|
||||||
s.append(" ").append(m_processName);
|
QLatin1Char(' ') % m_processName;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,5 +121,4 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
CValueObject::setPropertyByIndex(index, variant);
|
CValueObject::setPropertyByIndex(index, variant);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ namespace BlackMisc
|
|||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
virtual QDateTime getCacheTimestamp(const BlackMisc::Simulation::CSimulatorInfo &simulator) const = 0;
|
virtual QDateTime getCacheTimestamp(const BlackMisc::Simulation::CSimulatorInfo &simulator) const = 0;
|
||||||
|
|
||||||
//! Initilaized caches for which simulator
|
//! Initialized caches for which simulator?
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
BlackMisc::Simulation::CSimulatorInfo simulatorsWithInitializedCache() const;
|
BlackMisc::Simulation::CSimulatorInfo simulatorsWithInitializedCache() const;
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ namespace BlackMisc
|
|||||||
});
|
});
|
||||||
if (!CBuildConfig::isShippedVersion())
|
if (!CBuildConfig::isShippedVersion())
|
||||||
{
|
{
|
||||||
|
// developer directories
|
||||||
someDefaultDirs.push_back("P:/FSX (MSI)");
|
someDefaultDirs.push_back("P:/FSX (MSI)");
|
||||||
}
|
}
|
||||||
return CFileUtils::findFirstExisting(someDefaultDirs);
|
return CFileUtils::findFirstExisting(someDefaultDirs);
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
#include <QStringBuilder>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
@@ -127,11 +128,10 @@ namespace BlackMisc
|
|||||||
|
|
||||||
QString CAircraftModelLoaderXPlane::CSLPlane::getModelName() const
|
QString CAircraftModelLoaderXPlane::CSLPlane::getModelName() const
|
||||||
{
|
{
|
||||||
QString modelName = dirNames.join(' ');
|
const QString modelName =
|
||||||
modelName += " ";
|
dirNames.join(' ') %
|
||||||
modelName += objectName;
|
QLatin1Char(' ') % objectName %
|
||||||
modelName += " ";
|
QLatin1Char(' ') % textureName;
|
||||||
modelName += textureName;
|
|
||||||
return modelName;
|
return modelName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user