refs #886, adjusted QWizard to previous changes

* use QWizardPage derived classes
* added simulator config page
This commit is contained in:
Klaus Basan
2017-02-25 02:22:08 +01:00
committed by Mathew Sutcliffe
parent 5b92b2068e
commit 2c2a043e40
2 changed files with 56 additions and 117 deletions

View File

@@ -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