mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #886, adjusted QWizard to previous changes
* use QWizardPage derived classes * added simulator config page
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5b92b2068e
commit
2c2a043e40
@@ -19,9 +19,9 @@ namespace BlackGui
|
||||
ui(new Ui::CConfigurationWizard)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
connect(ui->wp_CopyCaches, &QWizardPage::completeChanged, ui->comp_CopyCaches, &CCopyConfigurationComponent::copySelectedFiles);
|
||||
connect(ui->wp_CopySettings, &QWizardPage::completeChanged, ui->comp_CopySettings, &CCopyConfigurationComponent::copySelectedFiles);
|
||||
ui->wp_CopyCaches->setConfigComponent(ui->comp_CopyCaches);
|
||||
ui->wp_CopySettings->setConfigComponent(ui->comp_CopySettings);
|
||||
ui->wp_Simulator->setConfigComponent(ui->comp_Simulator);
|
||||
connect(this, &QWizard::currentIdChanged, this, &CConfigurationWizard::wizardCurrentIdChanged);
|
||||
}
|
||||
|
||||
@@ -32,19 +32,13 @@ namespace BlackGui
|
||||
{
|
||||
Q_UNUSED(id);
|
||||
const QWizardPage *page = this->currentPage();
|
||||
if (page == ui->wp_Simulator)
|
||||
{
|
||||
//
|
||||
}
|
||||
else if (page == ui->wp_CopyCaches)
|
||||
if (page == ui->wp_CopyCaches)
|
||||
{
|
||||
ui->comp_CopyCaches->setCacheMode();
|
||||
ui->comp_CopyCaches->initCurrentDirectories();
|
||||
}
|
||||
else if (page == ui->wp_CopySettings)
|
||||
{
|
||||
ui->comp_CopySettings->setSettingsMode();
|
||||
ui->comp_CopySettings->initCurrentDirectories();
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user