Commit 441c652c authored by Leandro Melo's avatar Leandro Melo

C++: Change back highlighting of types

The type highlighting change part of the recent patch
4a2a17af didn't seem to
please much from a visual point of view. It's a better
idea to keep the type highlighting as it was for now
and in the future try again the approach with an explicit
option and perhaps a more restrictive context.

The other patch is not reverted entirely because it does
fix a couple of bugs.

Change-Id: I806afa3d8c1c4b241080b8704255d737f61ee12c
Reviewed-by: default avatarRoberto Raggi <>
parent 9b5afad2
......@@ -56,7 +56,7 @@
// Whenever this feature is considered "accepted" the switch below should be permanently
// removed, unless we decide to actually make this a user setting - that is why it's
// currently a bool instead of a define.
static const bool highlightCtorDtorAsType = false;
static const bool highlightCtorDtorAsType = true;
using namespace CPlusPlus;
using namespace CppTools;
......@@ -144,7 +144,6 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
formatDescriptions.append(FormatDescription(C_STATIC, tr("Static"), Qt::darkMagenta));
Format functionFormat;
functionFormat.setForeground(QColor(60, 60, 60)); // very dark grey
formatDescriptions.append(FormatDescription(C_FUNCTION, tr("Function"), functionFormat));
formatDescriptions.append(FormatDescription(C_VIRTUAL_METHOD, tr("Virtual Method"), functionFormat));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment