From dca76c9889d8bba49273ba9925cd5d2e9b32d9de Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 23 Mar 2017 12:43:02 +0100 Subject: [PATCH] Clang: Leave space between category and option in diagnostic display For some diagnostics ("#include_next is a language extension"), the text has a smaller width than the category and option together. In this case, there is no space between category and option, which looks terse. Change-Id: I27e4736a0d2aa527d5733c6115bc8d40fe7794e0 Reviewed-by: Tim Jenssen --- src/plugins/clangcodemodel/clangdiagnostictooltipwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.cpp b/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.cpp index 265069ec7f7..f3004a55b5c 100644 --- a/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.cpp +++ b/src/plugins/clangcodemodel/clangdiagnostictooltipwidget.cpp @@ -173,7 +173,7 @@ private: const QString text = QString::fromLatin1( " " " %1" - " %2" + "  %2" " ") .arg(diagnostic.category(), diagnostic.enableOption());