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
Utilities
Kate
Commits
d28c44a8
Commit
d28c44a8
authored
Dec 16, 2020
by
Waqar Ahmed
Committed by
Christoph Cullmann
Dec 16, 2020
Browse files
Revert "Replace signal blocking with orphan QTreeWidgetItem"
This reverts commit
7309f240
.
parent
25c39be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/plugin_search.cpp
View file @
d28c44a8
...
...
@@ -977,9 +977,8 @@ void KatePluginSearchView::matchFound(const QString &url, const QString &fName,
QStringList
row
;
row
<<
i18n
(
"Line: <b>%1</b> Column: <b>%2</b>: %3"
,
startLine
+
1
,
startColumn
+
1
,
pre
+
QStringLiteral
(
"<b>"
)
+
match
+
QStringLiteral
(
"</b>"
)
+
post
);
TreeWidgetItem
*
item
=
new
TreeWidgetItem
(
rootFileItem
(
url
,
fName
),
row
);
TreeWidgetItem
*
item
=
new
TreeWidgetItem
(
static_cast
<
TreeWidgetItem
*>
(
nullptr
),
row
);
m_curResults
->
tree
->
model
()
->
blockSignals
(
true
);
item
->
setData
(
0
,
ReplaceMatches
::
FileUrlRole
,
url
);
item
->
setData
(
0
,
Qt
::
ToolTipRole
,
url
);
item
->
setData
(
0
,
ReplaceMatches
::
FileNameRole
,
fName
);
...
...
@@ -992,7 +991,7 @@ void KatePluginSearchView::matchFound(const QString &url, const QString &fName,
item
->
setData
(
0
,
ReplaceMatches
::
EndLineRole
,
endLine
);
item
->
setData
(
0
,
ReplaceMatches
::
EndColumnRole
,
endColumn
);
item
->
setCheckState
(
0
,
Qt
::
Checked
);
m_curResults
->
tree
->
model
()
->
blockSignals
(
false
);
rootFileItem
(
url
,
fName
)
->
addChild
(
item
);
m_curResults
->
matches
++
;
}
...
...
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