mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Formatting, doxygen, minor adjustments
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5d5da0641f
commit
deed61a88c
@@ -459,9 +459,9 @@ namespace BlackGui
|
||||
this->m_modelModifyDialog->setValue(ui->comp_StashAircraft->view()->selectedObject());
|
||||
}
|
||||
|
||||
QDialog::DialogCode s = static_cast<QDialog::DialogCode>(this->m_modelModifyDialog->exec());
|
||||
const QDialog::DialogCode s = static_cast<QDialog::DialogCode>(this->m_modelModifyDialog->exec());
|
||||
if (s == QDialog::Rejected) { return; }
|
||||
CPropertyIndexVariantMap vm = this->m_modelModifyDialog->getValues();
|
||||
const CPropertyIndexVariantMap vm = this->m_modelModifyDialog->getValues();
|
||||
ui->comp_StashAircraft->applyToSelected(vm);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CDbModelComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BlackGui
|
||||
class CWeatherComponent;
|
||||
|
||||
|
||||
//! Main info area
|
||||
//! Main info area of pilot client
|
||||
class BLACKGUI_EXPORT CMainInfoAreaComponent : public BlackGui::CInfoArea
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace BlackGui
|
||||
explicit CAircraftModelFilterBar(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CAircraftModelFilterBar();
|
||||
virtual ~CAircraftModelFilterBar();
|
||||
|
||||
//! Show count
|
||||
void displayCount(bool show);
|
||||
@@ -58,7 +58,7 @@ namespace BlackGui
|
||||
virtual void onRowCountChanged(int count, bool withFilter) override;
|
||||
|
||||
protected:
|
||||
//! Clear form
|
||||
//! \copydoc CFilterWidget::clearForm
|
||||
virtual void clearForm() override;
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace BlackGui
|
||||
explicit CAircraftModelFilterDialog(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CAircraftModelFilterDialog();
|
||||
virtual ~CAircraftModelFilterDialog();
|
||||
|
||||
//! \copydoc Models::IModelFilterProvider::createModelFilter
|
||||
virtual std::unique_ptr<BlackGui::Models::IModelFilter<BlackMisc::Simulation::CAircraftModelList>> createModelFilter() const override;
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CFilterBarButtons; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Filters
|
||||
@@ -47,7 +46,7 @@ namespace BlackGui
|
||||
explicit CFilterBarButtons(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CFilterBarButtons();
|
||||
virtual ~CFilterBarButtons();
|
||||
|
||||
//! Show the counter
|
||||
void displayCount(bool show);
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace BlackGui
|
||||
void rejectDialog();
|
||||
|
||||
protected:
|
||||
//! Set and connect filter bar buttonsd
|
||||
//! Set and connect filter bar buttons
|
||||
void setButtonsAndCount(CFilterBarButtons *buttons);
|
||||
|
||||
//! Clear the filter form
|
||||
|
||||
@@ -22,8 +22,7 @@ namespace BlackGui
|
||||
m_countryIso(countryIso.trimmed().toUpper()), m_real(isReal), m_va(isVa)
|
||||
{
|
||||
this->m_valid = !(this->m_countryIso.isEmpty() && this->m_vDesignator.isEmpty() &&
|
||||
this->m_name.isEmpty() &&
|
||||
!m_va && !m_real);
|
||||
this->m_name.isEmpty() && !this->m_va && !this->m_real);
|
||||
}
|
||||
|
||||
CAirlineIcaoCodeList CAirlineIcaoFilter::filter(const CAirlineIcaoCodeList &inContainer) const
|
||||
|
||||
Reference in New Issue
Block a user