X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=b08134b10aa12394c0f895912a53a22a18d299c1;hp=3739fe9738facab56f884df42c163a52cc0e4c14;hb=326a0d0783c8ecffb6a7bae02fd74f66bd4242fa;hpb=15d94f850d7e82b9f9f65ec162d9db13f750d23f diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 3739fe97..b08134b1 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -406,6 +406,8 @@ UiStyle::FormatType UiStyle::formatType(Message::Type msgType) { return NetsplitJoinMsg; case Message::NetsplitQuit: return NetsplitQuitMsg; + case Message::Invite: + return InviteMsg; } //Q_ASSERT(false); // we need to handle all message types qWarning() << Q_FUNC_INFO << "Unknown message type:" << msgType; @@ -658,6 +660,9 @@ void UiStyle::StyledMessage::style() const { t.append(tr("%DN%1%DN (%2 more)").arg(static_cast(users.mid(0, maxNetsplitNicks)).join(", ")).arg(users.count() - maxNetsplitNicks)); } break; + case Message::Invite: + //: Invite Message + t = tr("%1").arg(txt); break; default: t = tr("[%1]").arg(txt); } @@ -728,6 +733,8 @@ QString UiStyle::StyledMessage::decoratedSender() const { return tr("=>"); break; case Message::NetsplitQuit: return tr("<="); break; + case Message::Invite: + return tr("->"); break; default: return tr("%1").arg(plainSender()); }