projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finally sanitizificat0red the mess and #ifdef hell with main.cpp, Global:: and friends
[quassel.git]
/
src
/
qtui
/
chatview.h
diff --git
a/src/qtui/chatview.h
b/src/qtui/chatview.h
index
7d84e6a
..
5341109
100644
(file)
--- a/
src/qtui/chatview.h
+++ b/
src/qtui/chatview.h
@@
-34,27
+34,30
@@
class MessageFilter;
class ChatView : public QGraphicsView, public AbstractChatView {
Q_OBJECT
class ChatView : public QGraphicsView, public AbstractChatView {
Q_OBJECT
- public:
- ChatView(MessageFilter *, QWidget *parent = 0);
- ChatView(Buffer *, QWidget *parent = 0);
- ~ChatView();
+public:
+ ChatView(MessageFilter *, QWidget *parent = 0);
+ ChatView(BufferId bufferId, QWidget *parent = 0);
- ChatScene *scene() const;
+ virtual MsgId lastMsgId() const;
+ inline ChatScene *scene() const { return _scene; }
- public slots:
+public slots:
+ inline virtual void clear() {}
- void clear();
+protected:
+ virtual void resizeEvent(QResizeEvent *event);
- protected:
- virtual void resizeEvent(QResizeEvent *event);
+protected slots:
+ virtual void sceneHeightChanged(qreal dh);
+ virtual inline void sceneRectChanged(const QRectF &rect) { setSceneRect(rect); }
+ virtual void verticalScrollbarChanged(int);
-
protected slots
:
-
virtual void sceneHeightChanged(qreal height
);
+
private
:
+
void init(MessageFilter *filter
);
- private:
- void init(MessageFilter *filter);
-
- ChatScene *_scene;
+ ChatScene *_scene;
+ int _lastScrollbarPos;
};
};
+
#endif
#endif