mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #799, overview page in settings component
This commit is contained in:
@@ -51,6 +51,15 @@ namespace BlackGui
|
||||
this->connect(ui->hs_SettingsGuiUserRefreshTime, &QSlider::valueChanged, this, &CSettingsComponent::changedUsersUpdateInterval);
|
||||
this->connect(ui->comp_SettingsGuiGeneral, &CSettingsGuiComponent::changedWindowsOpacity, this, &CSettingsComponent::changedWindowsOpacity);
|
||||
|
||||
connect(ui->pb_Advanced, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_Audio, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_Gui, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_Hotkeys, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_Network, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_Servers, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_Simulator, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_SimulatorBasics, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
connect(ui->pb_SimulatorMessages, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
}
|
||||
|
||||
CSettingsComponent::~CSettingsComponent()
|
||||
@@ -85,5 +94,20 @@ namespace BlackGui
|
||||
{
|
||||
ui->comp_SettingsGuiGeneral->setGuiOpacity(value);
|
||||
}
|
||||
|
||||
void CSettingsComponent::ps_overviewButtonClicked()
|
||||
{
|
||||
const QObject *sender = QObject::sender();
|
||||
if (sender == ui->pb_Advanced) { this->setCurrentIndex(SettingTabAdvanced); return; }
|
||||
if (sender == ui->pb_Audio) { this->setCurrentIndex(SettingTabAudio); return; }
|
||||
if (sender == ui->pb_Gui) { this->setCurrentIndex(SettingTabGui); return; }
|
||||
if (sender == ui->pb_Hotkeys) { this->setCurrentIndex(SettingTabHotkeys); return; }
|
||||
if (sender == ui->pb_Network) { this->setCurrentIndex(SettingTabNetwork); return; }
|
||||
if (sender == ui->pb_Servers) { this->setCurrentIndex(SettingTabServers); return; }
|
||||
if (sender == ui->pb_Simulator) { this->setCurrentIndex(SettingTabSimulator); return; }
|
||||
if (sender == ui->pb_SimulatorBasics) { this->setCurrentIndex(SettingTabSimulatorBasics); return; }
|
||||
if (sender == ui->pb_SimulatorMessages) { this->setCurrentIndex(SettingTabSimulatorMessages); return; }
|
||||
this->setCurrentIndex(SettingTabOverview);
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user