X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=6874e6fe3eaf72a0a12b03ee085b4ca9388e2c58;hb=4e51500401db3c85dbe5e92e5e5c15b6e3c87787;hp=22dd9a702cc59a7a513a0a5da3511f17cc8be685;hpb=cc6e7c08709c4e761e2fd9c2e322751015497003;p=quassel.git diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index 22dd9a70..6874e6fe 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 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 * @@ -20,10 +20,20 @@ #include "chatline.h" +#include #include #include +#include +#include #include -#include +#include +#include + +class QAbstractItemModel; +class QGraphicsSceneMouseEvent; +class QGraphicsSceneHoverEvent; +class QPainter; +class QStyleOptionGraphicsItem; #include "bufferinfo.h" #include "buffersyncer.h" @@ -47,9 +57,8 @@ ChatLine::ChatLine(int row, 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)