/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "chatline.h"
+#include <QAbstractItemModel>
#include <QDateTime>
#include <QGraphicsSceneMouseEvent>
+#include <QGraphicsSceneHoverEvent>
+#include <QPainter>
#include <QString>
-#include <QtGui>
+#include <QStyleOptionGraphicsItem>
+#include <QTextCharFormat>
+
+class QAbstractItemModel;
+class QGraphicsSceneMouseEvent;
+class QGraphicsSceneHoverEvent;
+class QPainter;
+class QStyleOptionGraphicsItem;
#include "bufferinfo.h"
#include "buffersyncer.h"
const QPointF& contentsPos,
QGraphicsItem* parent)
: QGraphicsItem(parent)
- , _row(row)
- , // needs to be set before the items
- _model(model)
+ , _row(row) // needs to be set before the items
+ , _model(model)
, _contentsItem(contentsPos, contentsWidth, this)
, _senderItem(QRectF(senderPos, QSizeF(senderWidth, _contentsItem.height())), this)
, _timestampItem(QRectF(0, 0, timestampWidth, _contentsItem.height()), this)