summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorMarius Messerschmidt <marius.messerschmidt@googlemail.com>2021-05-08 20:30:35 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-19 13:06:27 (GMT)
commitbceb8e2ed23340a90d2093e05d50f0cc797f6432 (patch)
tree01e3f1a9142ffa35813617296b49b1c335cc7f5e /Source/QtDialog
parent82fd8b6ba36658705fc55bc40df0b6b6ec80b773 (diff)
downloadCMake-bceb8e2ed23340a90d2093e05d50f0cc797f6432.zip
CMake-bceb8e2ed23340a90d2093e05d50f0cc797f6432.tar.gz
CMake-bceb8e2ed23340a90d2093e05d50f0cc797f6432.tar.bz2
cmMessenger: Pass title inside a metadata structure
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QCMake.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index a83622a..e6faef4 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -13,6 +13,7 @@
#include "cmExternalMakefileProjectGenerator.h"
#include "cmGlobalGenerator.h"
+#include "cmMessageMetadata.h"
#include "cmState.h"
#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
@@ -37,8 +38,8 @@ QCMake::QCMake(QObject* p)
cmSystemTools::SetRunCommandHideConsole(true);
cmSystemTools::SetMessageCallback(
- [this](std::string const& msg, const char* title) {
- this->messageCallback(msg, title);
+ [this](std::string const& msg, const cmMessageMetadata& md) {
+ this->messageCallback(msg, md.title);
});
cmSystemTools::SetStdoutCallback(
[this](std::string const& msg) { this->stdoutCallback(msg); });