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
Tobias Hunger
qt-creator
Commits
13892870
Commit
13892870
authored
Mar 04, 2009
by
Roberto Raggi
Browse files
Jump to the symbol's declarator.
parent
942f5a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
13892870
...
...
@@ -969,15 +969,14 @@ TextEditor::ITextEditor *CPPEditor::openCppEditorAt(const QString &fileName,
bool
CPPEditor
::
openEditorAt
(
Symbol
*
s
)
{
const
QString
fileName
=
QString
::
fromUtf8
(
s
->
fileName
(),
s
->
fileNameLength
());
#ifdef QTCREATOR_WITH_ADVANCED_HIGHLIGHTER
unsigned
line
=
s
->
line
();
unsigned
column
=
s
->
column
();
if
(
column
)
--
column
;
#else
if
(
s
->
isGenerated
())
unsigned
column
=
0
;
#endif
return
openCppEditorAt
(
fileName
,
s
->
line
()
,
column
);
return
openCppEditorAt
(
fileName
,
line
,
column
);
}
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