MarkerLineItem::MarkerLineItem(qreal sceneWidth, QGraphicsItem *parent)
: QGraphicsObject(parent),
_boundingRect(0, 0, sceneWidth, 1),
- _chatLine(0)
+ _chatLine(nullptr)
{
setVisible(false);
setZValue(8);
styleChanged(); // init brush and height
- connect(QtUi::style(), SIGNAL(changed()), SLOT(styleChanged()));
+ connect(QtUi::style(), &UiStyle::changed, this, &MarkerLineItem::styleChanged);
}