X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatline.h;h=ed2de36f71de630dc134e5828c3c7583dfd409ea;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hp=8fde09d68ebbd07445409310a309aabe80ec83dd;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e;p=quassel.git diff --git a/src/qtui/chatline.h b/src/qtui/chatline.h index 8fde09d6..ed2de36f 100644 --- a/src/qtui/chatline.h +++ b/src/qtui/chatline.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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 * @@ -34,7 +34,7 @@ public: const qreal &width, const qreal ×tampWidth, const qreal &senderWidth, const qreal &contentsWidth, const QPointF &senderPos, const QPointF &contentsPos, - QGraphicsItem *parent = 0); + QGraphicsItem *parent = nullptr); virtual ~ChatLine(); @@ -49,7 +49,7 @@ public: inline const QAbstractItemModel *model() const { return _model; } inline ChatScene *chatScene() const { return qobject_cast(scene()); } - inline ChatView *chatView() const { return chatScene() ? chatScene()->chatView() : 0; } + inline ChatView *chatView() const { return chatScene() ? chatScene()->chatView() : nullptr; } inline qreal width() const { return _width; } inline qreal height() const { return _height; } @@ -60,7 +60,7 @@ public: inline ChatItem *senderItem() { return &_senderItem; } inline ContentsChatItem *contentsItem() { return &_contentsItem; } - virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); + virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr); enum { Type = ChatScene::ChatLineType }; virtual inline int type() const { return Type; }