X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=2c3cda571e30b6b759bd43c623fc0d540170f672;hp=5aba1915bace2498c1f56f955f3b0b06084cefc2;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe 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)) {