X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=6874e6fe3eaf72a0a12b03ee085b4ca9388e2c58;hp=d0f39066528de19db698bbffe1edc02a6de49a15;hb=673ded0d543cbdc2cf6e746b6bee7c1d21af8f90;hpb=c1cf157116de7fc3da96203aa6f03c38c7ebb650 diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index d0f39066..6874e6fe 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -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)