Also allow to use SHIFT + button for models, aircraft

* added setTab functions
* shift can be used to reset to first tab
This commit is contained in:
Klaus Basan
2018-08-08 01:12:31 +02:00
parent 461d146619
commit 92deb19572
11 changed files with 62 additions and 29 deletions

View File

@@ -141,14 +141,14 @@ namespace BlackGui
return ui->comp_SettingsSimulatorBasics->getSimulatorSettings(simulator);
}
void CSettingsComponent::setSettingsTab(CSettingsComponent::SettingTab tab)
void CSettingsComponent::setTab(CSettingsComponent::SettingTab tab)
{
this->setCurrentIndex(static_cast<int>(tab));
}
void CSettingsComponent::setSettingsOverviewTab()
{
this->setSettingsTab(SettingTabOverview);
this->setTab(SettingTabOverview);
}
void CSettingsComponent::setGuiOpacity(double value)