refs #887, added QWizardPage derived class to call dependent functions

(QWizardPage provides virtual functions for that)
This commit is contained in:
Klaus Basan
2017-02-25 02:19:50 +01:00
parent 099832fba8
commit b53d4b6b58
2 changed files with 36 additions and 0 deletions

View File

@@ -181,5 +181,18 @@ namespace BlackGui
const int width = this->width() * 0.45;
ui->cb_OtherVersions->setFixedWidth(width);
}
void CCopyConfigurationWizardPage::initializePage()
{
Q_ASSERT_X(m_config, Q_FUNC_INFO, "Missing config");
m_config->initCurrentDirectories();
}
bool CCopyConfigurationWizardPage::validatePage()
{
Q_ASSERT_X(m_config, Q_FUNC_INFO, "Missing config");
m_config->copySelectedFiles();
return true;
}
} // ns
} // ns