QTextCharFormat mode;
mode.setForeground(QBrush("steelblue"));
formats["%Dm"] = mode;
+ // %Da - ctcp action
+ QTextCharFormat action;
+ action.setFontItalic(true);
+ action.setForeground(QBrush("darkmagenta"));
+ formats["%Da"] = action;
// %DT - timestamp
QTextCharFormat ts;