X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=4f03794e6f89ebc9c18929f212141ecd9e1588de;hp=99e09829247ae33b653dc54c96a8ac07b54ba964;hb=6e73ba4a19fd92038e1ea749125767661fb34e27;hpb=7ce58ac01ce9f67c13bce15ff0db7b15872a7657 diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index 99e09829..4f03794e 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -209,25 +209,6 @@ void ChatLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, timestampItem()->paint(painter, option, widget); senderItem()->paint(painter, option, widget); contentsItem()->paint(painter, option, widget); - - // new line marker - if(model_ && row() > 0 && chatScene()->isSingleBufferScene()) { - QModelIndex prevRowIdx = model_->index(row() - 1, 0); - MsgId prevMsgId = prevRowIdx.data(MessageModel::MsgIdRole).value(); - MsgId myMsgId = myIdx.data(MessageModel::MsgIdRole).value(); - Message::Flags flags = (Message::Flags)myIdx.data(MessageModel::FlagsRole).toInt(); - - if(chatView()->isMarkerLineVisible()) { - BufferId bufferId = BufferId(chatScene()->idString().toInt()); - MsgId lastSeenMsgId = Client::networkModel()->markerLineMsgId(bufferId); - if(lastSeenMsgId < myMsgId && lastSeenMsgId >= prevMsgId) { - QLinearGradient gradient(0, 0, 0, contentsItem()->fontMetrics()->lineSpacing()); - gradient.setColorAt(0, QtUi::style()->brush(UiStyle::MarkerLine).color()); // FIXME: Use full (gradient?) brush instead of just the color - gradient.setColorAt(0.1, Qt::transparent); - painter->fillRect(boundingRect(), gradient); - } - } - } } // We need to dispatch all mouse-related events to the appropriate (mouse grabbing) ChatItem