Ref T118, formatting

This commit is contained in:
Klaus Basan
2017-10-19 18:46:32 +02:00
parent c6d184cd3b
commit e920dc77b8
7 changed files with 78 additions and 103 deletions

View File

@@ -38,7 +38,6 @@ namespace BlackGui
namespace Menus { class CMenuActions; }
namespace Models { class CAircraftModelListModel; }
namespace Views { class CAircraftModelView; }
namespace Components
{
/*!

View File

@@ -353,7 +353,7 @@ namespace BlackGui
if (displayInfo)
{
const QString no = QString::number(this->getStashedModelsCount());
CStatusMessage msg(validationCategories(), CStatusMessage::SeverityInfo, "Validation passed for " + no + " models");
const CStatusMessage msg(validationCategories(), CStatusMessage::SeverityInfo, "Validation passed for " + no + " models");
this->showOverlayMessage(msg);
}
}

View File

@@ -88,14 +88,14 @@ namespace BlackGui
int CAircraftModelView::applyToSelected(const CLivery &livery)
{
if (!hasSelection()) { return 0; }
int c = this->updateSelected(CVariant::from(livery), CAircraftModel::IndexLivery);
const int c = this->updateSelected(CVariant::from(livery), CAircraftModel::IndexLivery);
return c;
}
int CAircraftModelView::applyToSelected(const CAircraftIcaoCode &icao)
{
if (!hasSelection()) { return 0; }
int c = this->updateSelected(CVariant::from(icao), CAircraftModel::IndexAircraftIcaoCode);
const int c = this->updateSelected(CVariant::from(icao), CAircraftModel::IndexAircraftIcaoCode);
return c;
}
@@ -109,7 +109,7 @@ namespace BlackGui
int CAircraftModelView::applyToSelected(const CPropertyIndexVariantMap &vm)
{
if (!hasSelection()) { return 0; }
int c = this->updateSelected(vm);
const int c = this->updateSelected(vm);
return c;
}