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
Utilities
Kate
Commits
49fa094f
Commit
49fa094f
authored
Jan 10, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Jan 15, 2022
Browse files
Add an action to clear search results to context menu
parent
76a71f48
Pipeline
#123911
passed with stage
in 3 minutes and 25 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/search/plugin_search.cpp
View file @
49fa094f
...
...
@@ -2083,6 +2083,8 @@ void KatePluginSearchView::customResMenuRequested(const QPoint &pos)
menu
->
addAction
(
exportMatches
);
}
QAction
*
clear
=
menu
->
addAction
(
i18n
(
"Clear"
));
menu
->
popup
(
tree
->
viewport
()
->
mapToGlobal
(
pos
));
connect
(
copyAll
,
&
QAction
::
triggered
,
this
,
[
this
](
bool
)
{
...
...
@@ -2094,6 +2096,10 @@ void KatePluginSearchView::customResMenuRequested(const QPoint &pos)
connect
(
exportMatches
,
&
QAction
::
triggered
,
this
,
[
this
](
bool
)
{
showExportMatchesDialog
();
});
connect
(
clear
,
&
QAction
::
triggered
,
this
,
[
this
]
{
m_curResults
->
matchModel
.
clear
();
clearMarksAndRanges
();
});
}
void
KatePluginSearchView
::
copySearchToClipboard
(
CopyResultType
copyType
)
...
...
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