forked from qt-creator/qt-creator
New File Dialog: Choose right default project for adding
So far we used a heuristic that prefers .pro files in the same directory as the new files. That fails if there are multiple .pro files in the same directory. So instead introduce a mechanism to pass extra data through the wizard. Task-number: QTCREATORBUG-7157 Change-Id: I615f7292e16a0a6cb1e84f090016879f1038409f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -434,7 +434,7 @@ QString BaseFileWizard::descriptionImage() const
|
||||
return d->m_parameters.descriptionImage();
|
||||
}
|
||||
|
||||
void BaseFileWizard::runWizard(const QString &path, QWidget *parent, const QString &platform)
|
||||
void BaseFileWizard::runWizard(const QString &path, QWidget *parent, const QString &platform, const QVariantMap &extraValues)
|
||||
{
|
||||
QTC_ASSERT(!path.isEmpty(), return);
|
||||
|
||||
@@ -493,7 +493,7 @@ void BaseFileWizard::runWizard(const QString &path, QWidget *parent, const QStri
|
||||
}
|
||||
if (firstExtensionPageHit)
|
||||
foreach (IFileWizardExtension *ex, extensions)
|
||||
ex->firstExtensionPageShown(files);
|
||||
ex->firstExtensionPageShown(files, extraValues);
|
||||
if (accepted)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user