X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=18934d6d0b153e756a937f0d8a6528bf7cb5ae94;hp=555f87707f577c8b5ad41254a8c53f1cb9af518b;hb=7f8c674b003c9f48c1c11cd7dee257a807f99d7c;hpb=a4f9e0b4ddaa983484dc56964f4320382719a02c diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 555f8770..18934d6d 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -394,6 +394,8 @@ UiStyle::FormatType UiStyle::formatType(Message::Type msgType) { return ErrorMsg; case Message::DayChange: return DayChangeMsg; + case Message::Topic: + return TopicMsg; } //Q_ASSERT(false); // we need to handle all message types qWarning() << Q_FUNC_INFO << "Unknown message type:" << msgType; @@ -608,6 +610,9 @@ void UiStyle::StyledMessage::style() const { //: Day Change Message t = tr("{Day changed to %1}").arg(timestamp().toString()); break; + case Message::Topic: + //: Topic Message + t = tr("%1").arg(txt); break; default: t = tr("[%1]").arg(txt); } @@ -672,6 +677,8 @@ QString UiStyle::StyledMessage::decoratedSender() const { return tr("*"); break; case Message::DayChange: return tr("-"); break; + case Message::Topic: + return tr("*"); break; default: return tr("%1").arg(plainSender()); }