forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user