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
Tobias Hunger
qt-creator
Commits
6c27faf0
Commit
6c27faf0
authored
Dec 21, 2009
by
con
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code.
parent
1a95f6f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
src/plugins/cpptools/cppfindreferences.cpp
src/plugins/cpptools/cppfindreferences.cpp
+0
-31
No files found.
src/plugins/cpptools/cppfindreferences.cpp
View file @
6c27faf0
...
...
@@ -259,37 +259,6 @@ void CppFindReferences::findAll_helper(Symbol *symbol)
connect
(
progress
,
SIGNAL
(
clicked
()),
_resultWindow
,
SLOT
(
popup
()));
}
static
void
applyChanges
(
QTextDocument
*
doc
,
const
QString
&
text
,
const
QList
<
Find
::
SearchResultItem
>
&
items
)
{
QList
<
QTextCursor
>
cursors
;
foreach
(
const
Find
::
SearchResultItem
&
item
,
items
)
{
const
int
blockNumber
=
item
.
lineNumber
-
1
;
QTextCursor
tc
(
doc
->
findBlockByNumber
(
blockNumber
));
const
int
cursorPosition
=
tc
.
position
()
+
item
.
searchTermStart
;
int
cursorIndex
=
0
;
for
(;
cursorIndex
<
cursors
.
size
();
++
cursorIndex
)
{
const
QTextCursor
&
tc
=
cursors
.
at
(
cursorIndex
);
if
(
tc
.
position
()
==
cursorPosition
)
break
;
}
if
(
cursorIndex
!=
cursors
.
size
())
continue
;
// skip this change.
tc
.
setPosition
(
cursorPosition
);
tc
.
setPosition
(
tc
.
position
()
+
item
.
searchTermLength
,
QTextCursor
::
KeepAnchor
);
cursors
.
append
(
tc
);
}
foreach
(
QTextCursor
tc
,
cursors
)
tc
.
insertText
(
text
);
}
void
CppFindReferences
::
onReplaceButtonClicked
(
const
QString
&
text
,
const
QList
<
Find
::
SearchResultItem
>
&
items
)
{
...
...
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