Minor UI fixes (typos, layout)

This commit is contained in:
Klaus Basan
2017-03-07 05:32:17 +01:00
committed by Mathew Sutcliffe
parent b392992944
commit 3432dd56fe
4 changed files with 24 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ namespace BlackGui
connect(ui->pb_Unstash, &QPushButton::pressed, this, &CDbStashComponent::ps_onUnstashPressed);
connect(ui->pb_Validate, &QPushButton::pressed, this, &CDbStashComponent::ps_onValidatePressed);
connect(ui->pb_RemoveInvald, &QPushButton::pressed, this, &CDbStashComponent::ps_onRemoveInvalidPressed);
connect(ui->pb_RemoveInvalid, &QPushButton::pressed, this, &CDbStashComponent::ps_onRemoveInvalidPressed);
connect(ui->pb_Publish, &QPushButton::pressed, this, &CDbStashComponent::ps_onPublishPressed);
connect(ui->tvp_StashAircraftModels, &CAircraftModelView::modelChanged, this, &CDbStashComponent::stashedModelsChanged);
connect(ui->tvp_StashAircraftModels, &CAircraftModelView::modelDataChanged, this, &CDbStashComponent::ps_onRowCountChanged);
@@ -359,13 +359,15 @@ namespace BlackGui
void CDbStashComponent::enableButtonRow()
{
bool e = !ui->tvp_StashAircraftModels->isEmpty();
const bool e = !ui->tvp_StashAircraftModels->isEmpty();
ui->pb_AircraftIcao->setEnabled(e);
ui->pb_AirlineIcao->setEnabled(e);
ui->pb_Distributor->setEnabled(e);
ui->pb_Livery->setEnabled(e);
ui->pb_Unstash->setEnabled(e);
ui->pb_Validate->setEnabled(e);
ui->pb_RemoveInvalid->setEnabled(e);
ui->pb_Model->setEnabled(e);
this->ps_userChanged();
}
@@ -377,7 +379,7 @@ namespace BlackGui
CAircraftModelList CDbStashComponent::getSelectedOrAllModels() const
{
bool selectedOnly = ui->cb_SelectedOnly->isChecked();
const bool selectedOnly = ui->cb_SelectedOnly->isChecked();
const CAircraftModelList models(selectedOnly ? ui->tvp_StashAircraftModels->selectedObjects() : ui->tvp_StashAircraftModels->containerOrFilteredContainer());
return models;
}
@@ -406,7 +408,7 @@ namespace BlackGui
CAircraftModel CDbStashComponent::consolidateModel(const CAircraftModel &model) const
{
CAircraftModel stashModel(model);
bool ownModel = stashModel.getModelType() == CAircraftModel::TypeOwnSimulatorModel;
const bool ownModel = stashModel.getModelType() == CAircraftModel::TypeOwnSimulatorModel;
// merge with DB data if any
if (!stashModel.hasValidDbKey())

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>773</width>
<width>859</width>
<height>221</height>
</rect>
</property>
@@ -91,7 +91,7 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_RemoveInvald">
<widget class="QPushButton" name="pb_RemoveInvalid">
<property name="toolTip">
<string>Remove invalid models</string>
</property>
@@ -175,7 +175,7 @@
<tabstop>tvp_StashAircraftModels</tabstop>
<tabstop>pb_Unstash</tabstop>
<tabstop>pb_Validate</tabstop>
<tabstop>pb_RemoveInvald</tabstop>
<tabstop>pb_RemoveInvalid</tabstop>
<tabstop>pb_Publish</tabstop>
<tabstop>cb_SelectedOnly</tabstop>
<tabstop>pb_Model</tabstop>

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>107</width>
<width>153</width>
<height>26</height>
</rect>
</property>
@@ -52,6 +52,19 @@
</property>
</widget>
</item>
<item>
<spacer name="hs_ModeSelector">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>

View File

@@ -203,7 +203,7 @@
</widget>
</item>
<item row="2" column="10">
<widget class="QLabel" name="label">
<widget class="QLabel" name="lbl_Distributor">
<property name="text">
<string>Distributor:</string>
</property>