mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Minor improvements
* space in message * removed ns Simulation * Doxygen
This commit is contained in:
@@ -19,15 +19,12 @@ namespace BlackCore
|
||||
{
|
||||
namespace Settings
|
||||
{
|
||||
namespace Simulation
|
||||
//! DBus server address
|
||||
struct DistributorListPreferences : public BlackMisc::CSettingTrait<BlackMisc::Simulation::CDistributorListPreferences>
|
||||
{
|
||||
//! DBus server address
|
||||
struct DistributorListPreferences : public BlackMisc::CSettingTrait<BlackMisc::Simulation::CDistributorListPreferences>
|
||||
{
|
||||
//! \copydoc BlackMisc::CSettingTrait::key
|
||||
static const char *key() { return "mapping/distributorpreferences"; }
|
||||
};
|
||||
} // ns
|
||||
//! \copydoc BlackMisc::CSettingTrait::key
|
||||
static const char *key() { return "mapping/distributorpreferences"; }
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace BlackGui
|
||||
QScopedPointer<Ui::CDbOwnModelSetComponent> ui;
|
||||
QScopedPointer<CDbOwnModelSetDialog> m_modelSetDialog;
|
||||
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 -----------------------------------
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace BlackGui
|
||||
QScopedPointer<Ui::CDistributorPreferencesComponent> ui;
|
||||
BlackGui::COverlayMessagesFrame *m_overlayMessageFrame = nullptr;
|
||||
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
|
||||
void updateContainerMaybeAsync(const BlackMisc::Simulation::CDistributorList &models, bool sortByOrder = true);
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
|
||||
#define BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace BlackGui
|
||||
private:
|
||||
QScopedPointer<Ui::COwnModelSetForm> ui;
|
||||
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
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace BlackMisc
|
||||
for (const auto &key : keys)
|
||||
{
|
||||
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(",");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user