projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing a compile warning in windows
[quassel.git]
/
src
/
qtui
/
chatscene.h
diff --git
a/src/qtui/chatscene.h
b/src/qtui/chatscene.h
index
e72308e
..
de6add9
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-28,8
+28,6
@@
#include "types.h"
class AbstractUiMsg;
#include "types.h"
class AbstractUiMsg;
-class Buffer;
-class BufferId;
class ChatItem;
class ChatLine;
class ColumnHandleItem;
class ChatItem;
class ChatLine;
class ColumnHandleItem;
@@
-49,6
+47,9
@@
class ChatScene : public QGraphicsScene {
inline bool isFetchingBacklog() const;
inline bool isBacklogFetchingEnabled() const;
inline BufferId bufferForBacklogFetching() const;
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);
public slots:
void setWidth(qreal);
@@
-86,6
+87,7
@@
class ChatScene : public QGraphicsScene {
qreal _width, _height;
QAbstractItemModel *_model;
QList<ChatLine *> _lines;
qreal _width, _height;
QAbstractItemModel *_model;
QList<ChatLine *> _lines;
+ bool _singleBufferScene;
ColumnHandleItem *firstColHandle, *secondColHandle;
qreal firstColHandlePos, secondColHandlePos;
ColumnHandleItem *firstColHandle, *secondColHandle;
qreal firstColHandlePos, secondColHandlePos;