Add a Contents subelement type to ChatLine
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Jun 2009 20:27:14 +0000 (22:27 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:05 +0000 (20:25 +0200)
This allows independent styling of the contents part of a message,
equivalent to the Sender and Timestamp columns.

src/uisupport/qssparser.cpp
src/uisupport/uistyle.h

index 2aa09ff..41bd0aa 100644 (file)
@@ -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")
index a163809..5941515 100644 (file)
@@ -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