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