From 8ac091abf8df9a0648e94df4755382f25dbb852f Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 9 Mar 2021 18:12:47 +0100 Subject: [PATCH] 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 --- src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index 73c21babb9e..67cc7daa0b7 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -447,8 +447,9 @@ bool CMakeBuildSystem::mustApplyExtraArguments(const BuildDirParameters ¶met auto answer = QMessageBox::question(Core::ICore::mainWindow(), tr("Apply configuration changes?"), - tr("Run CMake with \"%1\"?") - .arg(parameters.extraCMakeArguments.join(" ")), + "

" + tr("Run CMake with configuration changes?") + + "

"
+                                            + parameters.extraCMakeArguments.join("\n") + "
", QMessageBox::Apply | QMessageBox::Discard, QMessageBox::Apply); return answer == QMessageBox::Apply;