From: Manuel Nickschas Date: Thu, 18 Jun 2009 20:27:14 +0000 (+0200) Subject: Add a Contents subelement type to ChatLine X-Git-Tag: 0.5-rc1~140 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=a507ecd831054ca9b3845985ae7ca3d33fad908d;ds=sidebyside Add a Contents subelement type to ChatLine This allows independent styling of the contents part of a message, equivalent to the Sender and Timestamp columns. --- diff --git a/src/uisupport/qssparser.cpp b/src/uisupport/qssparser.cpp index 2aa09ffd..41bd0aaf 100644 --- a/src/uisupport/qssparser.cpp +++ b/src/uisupport/qssparser.cpp @@ -165,6 +165,8 @@ quint64 QssParser::parseFormatType(const QString &decl) { fmtType |= UiStyle::Sender; else if(subElement == "nick") fmtType |= UiStyle::Nick; + else if(subElement == "contents") + fmtType |= UiStyle::Contents; else if(subElement == "hostmask") fmtType |= UiStyle::Hostmask; else if(subElement == "modeflags") diff --git a/src/uisupport/uistyle.h b/src/uisupport/uistyle.h index a163809b..59415159 100644 --- a/src/uisupport/uistyle.h +++ b/src/uisupport/uistyle.h @@ -77,10 +77,11 @@ public: // Individual parts of a message Timestamp = 0x00000100, Sender = 0x00000200, - Nick = 0x00000400, - Hostmask = 0x00000800, - ChannelName = 0x00001000, - ModeFlags = 0x00002000, + Contents = 0x00000400, + Nick = 0x00000800, + Hostmask = 0x00001000, + ChannelName = 0x00002000, + ModeFlags = 0x00004000, // URL is special, we want that to take precedence over the rest... Url = 0x00080000