Ref T246, some upfront formatting

This commit is contained in:
Klaus Basan
2018-02-08 03:14:27 +01:00
parent 33d4cf82ea
commit 887d1ec401
8 changed files with 66 additions and 66 deletions

View File

@@ -24,14 +24,13 @@ namespace BlackMisc
namespace Settings
{
//! Settings for models
class BLACKMISC_EXPORT CModelSettings :
public BlackMisc::CValueObject<CModelSettings>
class BLACKMISC_EXPORT CModelSettings : public CValueObject<CModelSettings>
{
public:
//! Properties by index
enum ColumnIndex
{
IndexAllowExclude = BlackMisc::CPropertyIndex::GlobalIndexCSimulatorSettings
IndexAllowExclude = CPropertyIndex::GlobalIndexCSimulatorSettings
};
//! Default constructor
@@ -47,10 +46,10 @@ namespace BlackMisc
QString convertToQString(bool i18n = false) const;
//! \copydoc BlackMisc::Mixin::Index::propertyByIndex
BlackMisc::CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
BlackMisc::CVariant propertyByIndex(const CPropertyIndex &index) const;
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const BlackMisc::CVariant &variant);
void setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant);
private:
bool m_allowExcludeModels = false; //!< Allow excluded models in sets
@@ -62,7 +61,7 @@ namespace BlackMisc
};
//! Trait for simulator settings
struct TModel : public BlackMisc::TSettingTrait<CModelSettings>
struct TModel : public TSettingTrait<CModelSettings>
{
//! Key in data cache
static const char *key() { return "Models"; }
@@ -72,7 +71,7 @@ namespace BlackMisc
};
//! Mapping preferences for model distributor list
struct TDistributorListPreferences : public BlackMisc::TSettingTrait<BlackMisc::Simulation::CDistributorListPreferences>
struct TDistributorListPreferences : public TSettingTrait<Simulation::CDistributorListPreferences>
{
//! \copydoc BlackCore::TSettingTrait::humanReadable
static const QString &humanReadable() { static const QString name("Distributor preferences"); return name; }

View File

@@ -302,7 +302,7 @@ namespace BlackMisc
case CSimulatorInfo::FS9: return CFsCommonUtil::fs9Dir();
case CSimulatorInfo::FSX: return CFsCommonUtil::fsxDir();
case CSimulatorInfo::P3D: return CFsCommonUtil::p3dDir();
case CSimulatorInfo::XPLANE: return CXPlaneUtil::xplaneRootDir(); //! check XPlane
case CSimulatorInfo::XPLANE: return CXPlaneUtil::xplaneRootDir();
default:
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "No single simulator");
break;

View File

@@ -202,8 +202,7 @@ namespace BlackMisc
//! Settings regarding message handling.
//! Driver independent part, related to network
class BLACKMISC_EXPORT CSimulatorMessagesSettings :
public CValueObject<CSimulatorMessagesSettings>
class BLACKMISC_EXPORT CSimulatorMessagesSettings : public CValueObject<CSimulatorMessagesSettings>
{
public:
//! Properties by index