Kit: Allow for Macros in EnvironmentKitInformation

Task-number: QTCREATORBUG-19359
Change-Id: I215fcbb6156f864176d7a8284371029e3ae62e92
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2017-11-23 16:48:05 +01:00
parent cf781640cf
commit dbd365afe6
4 changed files with 23 additions and 7 deletions

View File

@@ -153,9 +153,11 @@ void EnvironmentDialog::setPlaceholderText(const QString &text)
QList<EnvironmentItem> EnvironmentDialog::getEnvironmentItems(bool *ok,
QWidget *parent,
const QList<EnvironmentItem> &initial,
const QString &placeholderText)
const QString &placeholderText,
Polisher polisher)
{
EnvironmentDialog dlg(parent);
polisher(&dlg);
dlg.setEnvironmentItems(initial);
dlg.setPlaceholderText(placeholderText);
bool result = dlg.exec() == QDialog::Accepted;