AnsiEscapeCodeHandler: Make enum private

Change-Id: Ie61567ed6af444ff01a09eeb77399c48163c04c1
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2014-01-17 15:37:13 +01:00
parent 6434a697be
commit c96fd7411d
2 changed files with 13 additions and 14 deletions

View File

@@ -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;

View File

@@ -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);