Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
32fff3f6
Commit
32fff3f6
authored
Sep 29, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled the semantic highlighter when using Qt 4.7.0.
parent
6fabd1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+5
-1
No files found.
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
Markdown
is supported
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