aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testresultspane.h
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2023-01-19 22:13:30 +0100
committerChristian Stenger <[email protected]>2023-02-14 06:41:22 +0000
commit0ffb85b4d864da82c879535d382a16ba2971164f (patch)
tree786cd52521678dede2d591cf40c9863f1c9c309d /src/plugins/autotest/testresultspane.h
parenta8d493d3521f2aff3cd4c26f880184b3cf14bced (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresultspane.h')
-rw-r--r--src/plugins/autotest/testresultspane.h8
1 files changed, 3 insertions, 5 deletions
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 <coreplugin/ioutputpane.h>
-#include <utils/ansiescapecodehandler.h>
#include <utils/itemviews.h>
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<TestEditorMark *> m_marks;
- QTextCharFormat m_defaultFormat;
- Utils::AnsiEscapeCodeHandler m_stdErrHandler;
- Utils::AnsiEscapeCodeHandler m_stdOutHandler;
};
} // namespace Internal