From 0ffb85b4d864da82c879535d382a16ba2971164f Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 19 Jan 2023 22:13:30 +0100 Subject: AutoTest: Improve test output handling Instead of just providing the hidden search, provide a more obvious present filter functionality for the text output similar to what is done in other output windows. This still has the find functionality present as well. Task-number: QTCREATORBUG-28706 Change-Id: I8f8b1494d86c90cbb9ea6bfad3f0e74caf3de2c9 Reviewed-by: David Schulz --- src/plugins/autotest/testresultspane.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/plugins/autotest/testresultspane.h') diff --git a/src/plugins/autotest/testresultspane.h b/src/plugins/autotest/testresultspane.h index 7cede72ad65..530b17c644c 100644 --- a/src/plugins/autotest/testresultspane.h +++ b/src/plugins/autotest/testresultspane.h @@ -7,7 +7,6 @@ #include -#include #include QT_BEGIN_NAMESPACE @@ -24,6 +23,7 @@ QT_END_NAMESPACE namespace Core { class IContext; +class OutputWindow; } namespace Autotest { @@ -71,6 +71,7 @@ public: bool canPrevious() const override; void goToNext() override; void goToPrev() override; + void updateFilter() override; void addTestResult(const TestResult &result); void addOutputLine(const QByteArray &outputLine, OutputChannel channel); @@ -118,15 +119,12 @@ private: QToolButton *m_stopTestRun; QToolButton *m_filterButton; QToolButton *m_outputToggleButton; - QPlainTextEdit *m_textOutput; + Core::OutputWindow *m_textOutput; QMenu *m_filterMenu; bool m_autoScroll = false; bool m_atEnd = false; bool m_testRunning = false; QVector m_marks; - QTextCharFormat m_defaultFormat; - Utils::AnsiEscapeCodeHandler m_stdErrHandler; - Utils::AnsiEscapeCodeHandler m_stdOutHandler; }; } // namespace Internal -- cgit v1.2.3