From a507ecd831054ca9b3845985ae7ca3d33fad908d Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Thu, 18 Jun 2009 22:27:14 +0200 Subject: [PATCH] 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. --- src/uisupport/qssparser.cpp | 2 ++ src/uisupport/uistyle.h | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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 -- 2.20.1