X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatscene.h;h=f97787ea7cee097a6ba6cf9f3b8695c7074ec5d0;hb=17a68937d25404ddb804f443629313a7c873dbe1;hp=30e3564617be5974503f6621818b7b56952f1293;hpb=15c352c7ae1ea3d0884d8dc641b7d642a51179fd;p=quassel.git diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index 30e35646..f97787ea 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -25,12 +25,12 @@ #include #include -#include "types.h" +#include "columnhandleitem.h" + class AbstractUiMsg; class ChatItem; class ChatLine; -class ColumnHandleItem; class QGraphicsSceneMouseEvent; @@ -49,6 +49,9 @@ class ChatScene : public QGraphicsScene { inline bool isSingleBufferScene() const { return _singleBufferScene; } inline ChatLine *chatLine(int row) { return (row < _lines.count()) ? _lines[row] : 0; } + inline QRectF firstColumnHandleRect() const { return firstColHandle->boundingRect().translated(firstColHandle->x(), 0); } + inline QRectF secondColumnHandleRect() const { return secondColHandle->boundingRect().translated(secondColHandle->x(), 0); } + public slots: void setWidth(qreal);