X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fqssparser.cpp;h=48a1a0645f3b5bef2e972d6f3d842484ad0414cf;hb=57c08c48e867edf38a9ce0547719cbd1b839952d;hp=ccb220417379f0fd585358a367ca431fad3bfe33;hpb=f4c3a241df84e2a2de9ddebdc4c7f25054b4ba9c;p=quassel.git diff --git a/src/uisupport/qssparser.cpp b/src/uisupport/qssparser.cpp index ccb22041..48a1a064 100644 --- a/src/uisupport/qssparser.cpp +++ b/src/uisupport/qssparser.cpp @@ -186,6 +186,8 @@ quint64 QssParser::parseFormatType(const QString &decl) { fmtType |= UiStyle::Hostmask; else if(subElement == "modeflags") fmtType |= UiStyle::ModeFlags; + else if(subElement == "url") + fmtType |= UiStyle::Url; else { qWarning() << Q_FUNC_INFO << tr("Invalid subelement name in %1").arg(decl); return UiStyle::Invalid; @@ -222,6 +224,8 @@ quint64 QssParser::parseFormatType(const QString &decl) { fmtType |= UiStyle::ErrorMsg; else if(msgType == "daychange") fmtType |= UiStyle::DayChangeMsg; + else if(msgType == "topic") + fmtType |= UiStyle::TopicMsg; else { qWarning() << Q_FUNC_INFO << tr("Invalid message type in %1").arg(decl); } @@ -285,9 +289,9 @@ quint64 QssParser::parseFormatType(const QString &decl) { return UiStyle::Invalid; } if(condName == "fg-color") - fmtType |= 0x00400000 | (col << 24); + fmtType |= 0x00400000 | (quint32)(col << 24); else - fmtType |= 0x00800000 | (col << 28); + fmtType |= 0x00800000 | (quint32)(col << 28); } else { qWarning() << Q_FUNC_INFO << tr("Unhandled condition: %1").arg(condName); return UiStyle::Invalid;