aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/find/searchresultwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/coreplugin/find/searchresultwindow.cpp')
-rw-r--r--src/plugins/coreplugin/find/searchresultwindow.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/find/searchresultwindow.cpp b/src/plugins/coreplugin/find/searchresultwindow.cpp
index 8f973dbe4c..ce4e6f3b83 100644
--- a/src/plugins/coreplugin/find/searchresultwindow.cpp
+++ b/src/plugins/coreplugin/find/searchresultwindow.cpp
@@ -260,7 +260,9 @@ using namespace Core::Internal;
/*!
\class Core::SearchResult
+ \inheaderfile coreplugin/find/searchresultwindow.h
\inmodule QtCreator
+
\brief The SearchResult class reports user interaction, such as the
activation of a search result item.
@@ -340,7 +342,9 @@ using namespace Core::Internal;
/*!
\class Core::SearchResultWindow
+ \inheaderfile coreplugin/find/searchresultwindow.h
\inmodule QtCreator
+
\brief The SearchResultWindow class is the implementation of a commonly
shared \uicontrol{Search Results} output pane.
@@ -708,6 +712,8 @@ SearchResult::SearchResult(SearchResultWidget *widget)
connect(widget, &SearchResultWidget::activated, this, &SearchResult::activated);
connect(widget, &SearchResultWidget::replaceButtonClicked,
this, &SearchResult::replaceButtonClicked);
+ connect(widget, &SearchResultWidget::replaceTextChanged,
+ this, &SearchResult::replaceTextChanged);
connect(widget, &SearchResultWidget::cancelled, this, &SearchResult::cancelled);
connect(widget, &SearchResultWidget::paused, this, &SearchResult::paused);
connect(widget, &SearchResultWidget::visibilityChanged,
@@ -770,6 +776,14 @@ QWidget *SearchResult::additionalReplaceWidget() const
}
/*!
+ Sets a \a widget as UI for a global search and replace action.
+*/
+void SearchResult::setAdditionalReplaceWidget(QWidget *widget)
+{
+ m_widget->setAdditionalReplaceWidget(widget);
+}
+
+/*!
Adds a single result line to the \uicontrol {Search Results} output pane.
\a fileName, \a lineNumber, and \a lineText are shown on the result line.
@@ -845,6 +859,14 @@ void SearchResult::setTextToReplace(const QString &textToReplace)
}
/*!
+ Sets whether replace is enabled and can be triggered by the user
+*/
+void SearchResult::setReplaceEnabled(bool enabled)
+{
+ m_widget->setReplaceEnabled(enabled);
+}
+
+/*!
* Removes all search results.
*/
void SearchResult::restart()