diff options
author | Christian Stenger <[email protected]> | 2019-11-14 14:11:34 +0100 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2020-01-08 14:10:26 +0000 |
commit | f188622704741a9de68c26b6ddf5274197706213 (patch) | |
tree | 7898c82da1592d77d8d211380746ca27df19645f /src/plugins/autotest/testresultspane.h | |
parent | c893fdffb64a6c253b3f55b61bd46ef9aa0984e9 (diff) |
AutoTest: Re-use established code
Instead of "parsing", modifying and highlighting the text
after it has been added use existing code to get formatted
code beforehand.
Change-Id: I33be2950f9b9a6910ad80b10b132089f4e5f0b1c
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresultspane.h')
-rw-r--r-- | src/plugins/autotest/testresultspane.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/autotest/testresultspane.h b/src/plugins/autotest/testresultspane.h index 3372cee06bd..ac835fd5082 100644 --- a/src/plugins/autotest/testresultspane.h +++ b/src/plugins/autotest/testresultspane.h @@ -29,6 +29,7 @@ #include <coreplugin/ioutputpane.h> +#include <utils/ansiescapecodehandler.h> #include <utils/itemviews.h> QT_BEGIN_NAMESPACE @@ -98,8 +99,6 @@ public: void addOutputLine(const QByteArray &outputLine, OutputChannel channel); void showTestResult(const QModelIndex &index); - OutputChannel channelForBlockNumber(int blockNumber) const; - private: explicit TestResultsPane(QObject *parent = nullptr); @@ -147,7 +146,9 @@ private: bool m_atEnd = false; bool m_testRunning = false; QVector<TestEditorMark *> m_marks; - QList<OutputChannel> m_outputChannels; + QTextCharFormat m_defaultFormat; + Utils::AnsiEscapeCodeHandler m_stdErrHandler; + Utils::AnsiEscapeCodeHandler m_stdOutHandler; }; } // namespace Internal |