X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmarkerlineitem.cpp;h=68d681ac7153d16a9d2ba0b8a8b63a9e8f59c547;hb=517fc0fdbbd67b4e195b7a06246ff81a963a37fa;hp=333634183bdae81d4827982ab1fc86a7f51446cd;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c;p=quassel.git diff --git a/src/qtui/markerlineitem.cpp b/src/qtui/markerlineitem.cpp index 33363418..68d681ac 100644 --- a/src/qtui/markerlineitem.cpp +++ b/src/qtui/markerlineitem.cpp @@ -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);