Minor improvements

* space in message
* removed ns Simulation
* Doxygen
This commit is contained in:
Klaus Basan
2016-06-25 00:45:01 +02:00
parent dc02ff2d0c
commit 0253da8bf9
6 changed files with 11 additions and 12 deletions

View File

@@ -19,15 +19,12 @@ namespace BlackCore
{ {
namespace Settings namespace Settings
{ {
namespace Simulation //! DBus server address
struct DistributorListPreferences : public BlackMisc::CSettingTrait<BlackMisc::Simulation::CDistributorListPreferences>
{ {
//! DBus server address //! \copydoc BlackMisc::CSettingTrait::key
struct DistributorListPreferences : public BlackMisc::CSettingTrait<BlackMisc::Simulation::CDistributorListPreferences> static const char *key() { return "mapping/distributorpreferences"; }
{ };
//! \copydoc BlackMisc::CSettingTrait::key
static const char *key() { return "mapping/distributorpreferences"; }
};
} // ns
} // ns } // ns
} // ns } // ns

View File

@@ -141,7 +141,7 @@ namespace BlackGui
QScopedPointer<Ui::CDbOwnModelSetComponent> ui; QScopedPointer<Ui::CDbOwnModelSetComponent> ui;
QScopedPointer<CDbOwnModelSetDialog> m_modelSetDialog; QScopedPointer<CDbOwnModelSetDialog> m_modelSetDialog;
BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this }; BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this };
BlackMisc::CSetting<BlackCore::Settings::Simulation::DistributorListPreferences> m_distributorPreferences { this, &CDbOwnModelSetComponent::ps_distributorPreferencesChanged }; BlackMisc::CSetting<BlackCore::Settings::DistributorListPreferences> m_distributorPreferences { this, &CDbOwnModelSetComponent::ps_distributorPreferencesChanged };
// -------------------------- custom menus ----------------------------------- // -------------------------- custom menus -----------------------------------

View File

@@ -72,7 +72,7 @@ namespace BlackGui
QScopedPointer<Ui::CDistributorPreferencesComponent> ui; QScopedPointer<Ui::CDistributorPreferencesComponent> ui;
BlackGui::COverlayMessagesFrame *m_overlayMessageFrame = nullptr; BlackGui::COverlayMessagesFrame *m_overlayMessageFrame = nullptr;
BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this }; BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this };
BlackMisc::CSetting<BlackCore::Settings::Simulation::DistributorListPreferences> m_distributorPreferences { this, &CDistributorPreferencesComponent::ps_preferencesChanged }; BlackMisc::CSetting<BlackCore::Settings::DistributorListPreferences> m_distributorPreferences { this, &CDistributorPreferencesComponent::ps_preferencesChanged };
//! Update //! Update
void updateContainerMaybeAsync(const BlackMisc::Simulation::CDistributorList &models, bool sortByOrder = true); void updateContainerMaybeAsync(const BlackMisc::Simulation::CDistributorList &models, bool sortByOrder = true);

View File

@@ -7,6 +7,8 @@
* contained in the LICENSE file. * contained in the LICENSE file.
*/ */
//! \file
#ifndef BLACKGUI_SETTINGSSIMULATORCOMPONENT_H #ifndef BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
#define BLACKGUI_SETTINGSSIMULATORCOMPONENT_H #define BLACKGUI_SETTINGSSIMULATORCOMPONENT_H

View File

@@ -85,7 +85,7 @@ namespace BlackGui
private: private:
QScopedPointer<Ui::COwnModelSetForm> ui; QScopedPointer<Ui::COwnModelSetForm> ui;
BlackMisc::Simulation::CSimulatorInfo m_simulator; BlackMisc::Simulation::CSimulatorInfo m_simulator;
BlackMisc::CSetting<BlackCore::Settings::Simulation::DistributorListPreferences> m_distributorPreferences { this, &COwnModelSetForm::ps_preferencesChanged }; BlackMisc::CSetting<BlackCore::Settings::DistributorListPreferences> m_distributorPreferences { this, &COwnModelSetForm::ps_preferencesChanged };
}; };
} // ns } // ns
} // ns } // ns

View File

@@ -97,7 +97,7 @@ namespace BlackMisc
for (const auto &key : keys) for (const auto &key : keys)
{ {
QString time = contains(key) ? QDateTime::fromMSecsSinceEpoch(value(key).second, Qt::UTC).toString(Qt::ISODate) : "no timestamp"; QString time = contains(key) ? QDateTime::fromMSecsSinceEpoch(value(key).second, Qt::UTC).toString(Qt::ISODate) : "no timestamp";
result.push_back(key + "(" + time + ")"); result.push_back(key + " (" + time + ")");
} }
return result.join(","); return result.join(",");
} }