Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
32fff3f6
Commit
32fff3f6
authored
Sep 29, 2010
by
Roberto Raggi
Browse files
Disabled the semantic highlighter when using Qt 4.7.0.
parent
6fabd1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
32fff3f6
...
...
@@ -102,6 +102,10 @@ enum {
using
namespace
CPlusPlus
;
using
namespace
CppEditor
::
Internal
;
namespace
{
bool
semanticHighlighterDisabled
=
qstrcmp
(
qVersion
(),
"4.7.0"
)
==
0
;
}
static
QList
<
QTextEdit
::
ExtraSelection
>
createSelections
(
QTextDocument
*
document
,
const
QList
<
CPlusPlus
::
Document
::
DiagnosticMessage
>
&
msgs
,
const
QTextCharFormat
&
format
)
...
...
@@ -1888,7 +1892,7 @@ void CPPEditor::updateSemanticInfo(const SemanticInfo &semanticInfo)
m_highlighter
.
cancel
();
if
(
semanticInfo
.
doc
)
{
if
(
!
semanticHighlighterDisabled
&&
semanticInfo
.
doc
)
{
if
(
Core
::
EditorManager
::
instance
()
->
currentEditor
()
==
editableInterface
())
{
LookupContext
context
(
semanticInfo
.
doc
,
semanticInfo
.
snapshot
);
CheckSymbols
::
Future
f
=
CheckSymbols
::
go
(
semanticInfo
.
doc
,
context
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment