/******** Determine format types from a block declaration ********/
quint64 QssParser::parseFormatType(const QString &decl) {
/******** Determine format types from a block declaration ********/
quint64 QssParser::parseFormatType(const QString &decl) {
// $1: subelement; $2: msgtype; $3: conditionals
if(!rx.exactMatch(decl)) {
qWarning() << Q_FUNC_INFO << tr("Invalid block declaration: %1").arg(decl);
// $1: subelement; $2: msgtype; $3: conditionals
if(!rx.exactMatch(decl)) {
qWarning() << Q_FUNC_INFO << tr("Invalid block declaration: %1").arg(decl);
fmtType |= UiStyle::DayChangeMsg;
else if(msgType == "topic")
fmtType |= UiStyle::TopicMsg;
fmtType |= UiStyle::DayChangeMsg;
else if(msgType == "topic")
fmtType |= UiStyle::TopicMsg;
fmtType |= UiStyle::NetsplitQuitMsg;
else {
qWarning() << Q_FUNC_INFO << tr("Invalid message type in %1").arg(decl);
fmtType |= UiStyle::NetsplitQuitMsg;
else {
qWarning() << Q_FUNC_INFO << tr("Invalid message type in %1").arg(decl);