/******** 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;
return QBrush();
}
QLinearGradient gradient(x1, y1, x2, y2);
return QBrush();
}
QLinearGradient gradient(x1, y1, x2, y2);
return QBrush();
}
QRadialGradient gradient(cx, cy, radius, fx, fy);
return QBrush();
}
QRadialGradient gradient(cx, cy, radius, fx, fy);
if(!rx.exactMatch(value)) {
qWarning() << Q_FUNC_INFO << tr("Invalid font size specification: %1").arg(value);
return;
if(!rx.exactMatch(value)) {
qWarning() << Q_FUNC_INFO << tr("Invalid font size specification: %1").arg(value);
return;