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
187434df
Commit
187434df
authored
Dec 09, 2008
by
Roberto Raggi
Browse files
Follow macro under cursor.
parent
0e27bc5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
187434df
...
...
@@ -520,6 +520,15 @@ void CPPEditor::jumpToDefinition()
#endif
}
}
else
{
foreach
(
const
Document
::
MacroUse
use
,
doc
->
macroUses
())
{
if
(
use
.
contains
(
endOfName
-
1
))
{
const
Macro
&
macro
=
use
.
macro
();
const
QString
fileName
=
QString
::
fromUtf8
(
macro
.
fileName
);
if
(
TextEditor
::
BaseTextEditor
::
openEditorAt
(
fileName
,
macro
.
line
,
0
))
return
;
// done
}
}
qDebug
()
<<
"No results for expression:"
<<
expression
;
}
}
...
...
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