DbgHelper::DbgHelper(const QString &t) { txt = t; #ifdef NO_COLOR myColor=-1; #else myColor = colorIndex; colorIndex = (colorIndex + 1) % 7; #endif DbgHelper_output(myColor, indent, QStringLiteral("BEGIN"), txt); ++indent; }
DbgHelper::~DbgHelper() { --indent; DbgHelper_output(myColor, indent, "END", txt); }
DbgHelper::~DbgHelper() { --indent; DbgHelper_output(myColor, indent, QStringLiteral("END"), txt); }