mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Style and minor UI tweaks
This commit is contained in:
committed by
Mat Sutcliffe
parent
70f487cd01
commit
f14184ddc0
@@ -42,7 +42,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~IContext() {}
|
virtual ~IContext() override {}
|
||||||
|
|
||||||
//! Log categories
|
//! Log categories
|
||||||
static const BlackMisc::CLogCategoryList &getLogCategories();
|
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||||
|
|||||||
@@ -813,7 +813,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
void CContextSimulator::xCtxNetworkConnectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to)
|
void CContextSimulator::xCtxNetworkConnectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to)
|
||||||
{
|
{
|
||||||
Q_UNUSED(from);
|
Q_UNUSED(from)
|
||||||
BLACK_VERIFY_X(this->getIContextNetwork(), Q_FUNC_INFO, "Missing network context");
|
BLACK_VERIFY_X(this->getIContextNetwork(), Q_FUNC_INFO, "Missing network context");
|
||||||
if (to.isConnected() && this->getIContextNetwork())
|
if (to.isConnected() && this->getIContextNetwork())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>350</width>
|
<width>450</width>
|
||||||
<height>550</height>
|
<height>600</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#include <QJsonValue>
|
#include <QJsonValue>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
|
using namespace BlackConfig;
|
||||||
using namespace BlackMisc;
|
using namespace BlackMisc;
|
||||||
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
@@ -31,7 +32,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
// json data is already validated by CPluginManagerSimulator
|
// json data is already validated by CPluginManagerSimulator
|
||||||
CJsonScope scope("MetaData");
|
CJsonScope scope("MetaData");
|
||||||
Q_UNUSED(scope);
|
Q_UNUSED(scope)
|
||||||
CValueObject::convertFromJson(json["MetaData"].toObject());
|
CValueObject::convertFromJson(json["MetaData"].toObject());
|
||||||
m_valid = true;
|
m_valid = true;
|
||||||
}
|
}
|
||||||
@@ -62,7 +63,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
QString CSimulatorPluginInfo::convertToQString(bool i18n) const
|
QString CSimulatorPluginInfo::convertToQString(bool i18n) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(i18n);
|
Q_UNUSED(i18n)
|
||||||
return QStringLiteral("%1 (%2)").arg(m_name, m_identifier);
|
return QStringLiteral("%1 (%2)").arg(m_name, m_identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +119,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
QStringList CSimulatorPluginInfo::guessDefaultPlugins()
|
QStringList CSimulatorPluginInfo::guessDefaultPlugins()
|
||||||
{
|
{
|
||||||
if (BlackConfig::CBuildConfig::isRunningOnUnixPlatform())
|
if (CBuildConfig::isRunningOnUnixPlatform())
|
||||||
{
|
{
|
||||||
// On UNIX we likely run XP
|
// On UNIX we likely run XP
|
||||||
return QStringList { xplanePluginIdentifier(), fgPluginIdentifier() };
|
return QStringList { xplanePluginIdentifier(), fgPluginIdentifier() };
|
||||||
|
|||||||
Reference in New Issue
Block a user