modernize: Migrate action-related things to PMF connects
[quassel.git] / src / qtui / markerlineitem.cpp
index 68d681a..4ec1651 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2016 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 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);
 }