forked from qt-creator/qt-creator
CMake: Improve layout of "Apply configuration changes" dialog
Show the CMake parameters that would be passed in a mono space font, one option per line. Change-Id: I462792736960b33fea669b5b753c89d21cd087fd Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -447,8 +447,9 @@ bool CMakeBuildSystem::mustApplyExtraArguments(const BuildDirParameters ¶met
|
|||||||
|
|
||||||
auto answer = QMessageBox::question(Core::ICore::mainWindow(),
|
auto answer = QMessageBox::question(Core::ICore::mainWindow(),
|
||||||
tr("Apply configuration changes?"),
|
tr("Apply configuration changes?"),
|
||||||
tr("Run CMake with \"%1\"?")
|
"<p>" + tr("Run CMake with configuration changes?")
|
||||||
.arg(parameters.extraCMakeArguments.join(" ")),
|
+ "</p><pre>"
|
||||||
|
+ parameters.extraCMakeArguments.join("\n") + "</pre>",
|
||||||
QMessageBox::Apply | QMessageBox::Discard,
|
QMessageBox::Apply | QMessageBox::Discard,
|
||||||
QMessageBox::Apply);
|
QMessageBox::Apply);
|
||||||
return answer == QMessageBox::Apply;
|
return answer == QMessageBox::Apply;
|
||||||
|
Reference in New Issue
Block a user