X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=2c3cda571e30b6b759bd43c623fc0d540170f672;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hp=5aba1915bace2498c1f56f955f3b0b06084cefc2;hpb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;p=quassel.git diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index 5aba1915..2c3cda57 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -215,7 +215,7 @@ void ChatLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, const QAbstractItemModel *model_ = model(); QModelIndex myIdx = model_->index(row(), 0); Message::Type type = (Message::Type)myIdx.data(MessageModel::TypeRole).toInt(); - UiStyle::MessageLabel label = myIdx.data(ChatLineModel::MsgLabelRole).value(); + auto label = myIdx.data(ChatLineModel::MsgLabelRole).value(); QTextCharFormat msgFmt = QtUi::style()->format({UiStyle::formatType(type), {}, {}}, label); if (msgFmt.hasProperty(QTextFormat::BackgroundBrush)) {