SelectableFilesWidget: Wire up logic to notify about selection changes

Change-Id: Iba9b31c9ba374855c024d4fb0739d3ba9ab43bc9
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-11-24 14:43:08 +01:00
parent 03a7b7d7a9
commit 3a2d5954f9
4 changed files with 28 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ FilesSelectionWizardPage::FilesSelectionWizardPage(GenericProjectWizardDialog *g
layout->addWidget(m_filesWidget);
m_filesWidget->setBaseDirEditable(false);
connect(m_filesWidget, &ProjectExplorer::SelectableFilesWidget::selectedFilesChanged,
this, &FilesSelectionWizardPage::completeChanged);
setProperty(Utils::SHORT_TITLE_PROPERTY, tr("Files"));
}
@@ -72,7 +74,7 @@ void FilesSelectionWizardPage::cleanupPage()
bool FilesSelectionWizardPage::isComplete() const
{
return m_finished;
return m_filesWidget->hasFilesSelected();
}
Utils::FileNameList FilesSelectionWizardPage::selectedPaths() const