forked from qt-creator/qt-creator
AnsiEscapeCodeHandler: Make enum private
Change-Id: Ie61567ed6af444ff01a09eeb77399c48163c04c1 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -73,6 +73,19 @@ static QColor ansiColor(uint code)
|
|||||||
QList<StringFormatPair> AnsiEscapeCodeHandler::parseText(const QString &text,
|
QList<StringFormatPair> AnsiEscapeCodeHandler::parseText(const QString &text,
|
||||||
const QTextCharFormat &defaultFormat)
|
const QTextCharFormat &defaultFormat)
|
||||||
{
|
{
|
||||||
|
enum AnsiEscapeCodes {
|
||||||
|
ResetFormat = 0,
|
||||||
|
BoldText = 1,
|
||||||
|
TextColorStart = 30,
|
||||||
|
TextColorEnd = 37,
|
||||||
|
RgbTextColor = 38,
|
||||||
|
DefaultTextColor = 39,
|
||||||
|
BackgroundColorStart = 40,
|
||||||
|
BackgroundColorEnd = 47,
|
||||||
|
RgbBackgroundColor = 48,
|
||||||
|
DefaultBackgroundColor = 49
|
||||||
|
};
|
||||||
|
|
||||||
QList<StringFormatPair> outputData;
|
QList<StringFormatPair> outputData;
|
||||||
|
|
||||||
QTextCharFormat charFormat = m_previousFormatClosed ? defaultFormat : m_previousFormat;
|
QTextCharFormat charFormat = m_previousFormatClosed ? defaultFormat : m_previousFormat;
|
||||||
|
|||||||
@@ -41,20 +41,6 @@ typedef QPair<QString, QTextCharFormat> StringFormatPair;
|
|||||||
|
|
||||||
class QTCREATOR_UTILS_EXPORT AnsiEscapeCodeHandler
|
class QTCREATOR_UTILS_EXPORT AnsiEscapeCodeHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
enum AnsiEscapeCodes {
|
|
||||||
ResetFormat = 0,
|
|
||||||
BoldText = 1,
|
|
||||||
TextColorStart = 30,
|
|
||||||
TextColorEnd = 37,
|
|
||||||
RgbTextColor = 38,
|
|
||||||
DefaultTextColor = 39,
|
|
||||||
BackgroundColorStart = 40,
|
|
||||||
BackgroundColorEnd = 47,
|
|
||||||
RgbBackgroundColor = 48,
|
|
||||||
DefaultBackgroundColor = 49
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AnsiEscapeCodeHandler();
|
AnsiEscapeCodeHandler();
|
||||||
QList<StringFormatPair> parseText(const QString &text, const QTextCharFormat &defaultFormat);
|
QList<StringFormatPair> parseText(const QString &text, const QTextCharFormat &defaultFormat);
|
||||||
|
|||||||
Reference in New Issue
Block a user