Skip to content
GitLab
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
4fc1856d
Commit
4fc1856d
authored
Feb 02, 2009
by
Thorbjørn Lindeijer
Browse files
Don't open an editor when not clicking on a search result
This basically reverts change
01933445
parent
259357ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/find/searchresulttreeview.cpp
View file @
4fc1856d
...
...
@@ -76,6 +76,9 @@ void SearchResultTreeView::appendResultLine(int index, const QString &fileName,
void
SearchResultTreeView
::
emitJumpToSearchResult
(
const
QModelIndex
&
index
)
{
if
(
model
()
->
data
(
index
,
ItemDataRoles
::
TypeRole
).
toString
().
compare
(
"row"
)
!=
0
)
return
;
QString
fileName
=
model
()
->
data
(
index
,
ItemDataRoles
::
FileNameRole
).
toString
();
int
position
=
model
()
->
data
(
index
,
ItemDataRoles
::
ResultIndexRole
).
toInt
();
int
lineNumber
=
model
()
->
data
(
index
,
ItemDataRoles
::
ResultLineNumberRole
).
toInt
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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