the new chatwidget now highlights the first new message since your last visit (curren...
[quassel.git] / src / qtui / chatscene.h
index e72308e..ce56f6b 100644 (file)
@@ -28,7 +28,6 @@
 #include "types.h"
 
 class AbstractUiMsg;
-class Buffer;
 class BufferId;
 class ChatItem;
 class ChatLine;
@@ -49,6 +48,9 @@ class ChatScene : public QGraphicsScene {
     inline bool isFetchingBacklog() const;
     inline bool isBacklogFetchingEnabled() const;
     inline BufferId bufferForBacklogFetching() const;
+    int sectionByScenePos(int x);
+    inline int sectionByScenePos(const QPoint &pos) { return sectionByScenePos(pos.x()); }
+    inline bool isSingleBufferScene() const { return _singleBufferScene; }
 
   public slots:
     void setWidth(qreal);
@@ -86,6 +88,7 @@ class ChatScene : public QGraphicsScene {
     qreal _width, _height;
     QAbstractItemModel *_model;
     QList<ChatLine *> _lines;
+    bool _singleBufferScene;
 
     ColumnHandleItem *firstColHandle, *secondColHandle;
     qreal firstColHandlePos, secondColHandlePos;