X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmarkerlineitem.cpp;h=d0d58c4b4b565cfba96b8bcc223fdd0434edfdb5;hp=6faa79a9b6ae23787c2ee8433651aa07090c855f;hb=a65f42197839da536975b3e2858eedcef420035f;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/qtui/markerlineitem.cpp b/src/qtui/markerlineitem.cpp index 6faa79a9..d0d58c4b 100644 --- a/src/qtui/markerlineitem.cpp +++ b/src/qtui/markerlineitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -45,13 +45,13 @@ void MarkerLineItem::setChatLine(ChatLine *line) void MarkerLineItem::styleChanged() { - _brush = QtUi::style()->brush(UiStyle::MarkerLine); + _brush = QtUi::style()->brush(UiStyle::ColorRole::MarkerLine); // if this is a solid color, we assume 1px because wesurely don't surely don't want to fill the entire chatline. // else, use the height of a single line of text to play around with gradients etc. qreal height = 1.; if (_brush.style() != Qt::SolidPattern) - height = QtUi::style()->fontMetrics(QtUiStyle::PlainMsg, 0)->lineSpacing(); + height = QtUi::style()->fontMetrics(QtUiStyle::FormatType::PlainMsg, UiStyle::MessageLabel::None)->lineSpacing(); prepareGeometryChange(); _boundingRect = QRectF(0, 0, scene() ? scene()->width() : 100, height);