X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatitem.cpp;h=d94a2a912eeec25cd90877c03b1b658e62530027;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hp=9fadc127a7612c84590af3ae377f142167a70f0e;hpb=35c39237136ab3ddc94d20d8280b7bf6680f07c2;p=quassel.git diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index 9fadc127..d94a2a91 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -33,6 +33,7 @@ #include #include +#include "action.h" #include "buffermodel.h" #include "bufferview.h" #include "chatline.h" @@ -49,7 +50,7 @@ ChatItem::ChatItem(const QRectF &boundingRect, ChatLine *parent) _boundingRect(boundingRect), _selectionMode(NoSelection), _selectionStart(-1), - _cachedLayout(0) + _cachedLayout(nullptr) { } @@ -141,7 +142,7 @@ QTextLayout *ChatItem::layout() const void ChatItem::clearCache() { delete _cachedLayout; - _cachedLayout = 0; + _cachedLayout = nullptr; } @@ -297,7 +298,7 @@ QVector ChatItem::additionalFormats() const using Label = UiStyle::MessageLabel; using Format = UiStyle::Format; - Label itemLabel = data(ChatLineModel::MsgLabelRole).value