/***************************************************************************
- * Copyright (C) 2005-2012 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 *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef CHATLINE_H_
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();
inline const QAbstractItemModel *model() const { return _model; }
inline ChatScene *chatScene() const { return qobject_cast<ChatScene *>(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; }
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; }