projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle rowsInserted() and add new messages to the scene.
[quassel.git]
/
src
/
qtui
/
chatscene.h
diff --git
a/src/qtui/chatscene.h
b/src/qtui/chatscene.h
index
1ce9304
..
fd72010
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-42,16
+42,17
@@
class ChatScene : public QGraphicsScene {
inline MessageModel *model() const { return _model; }
public slots:
inline MessageModel *model() const { return _model; }
public slots:
+ void setWidth(int);
protected slots:
protected slots:
-
+ void rowsInserted(const QModelIndex &, int, int);
void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
private:
void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
private:
-
//Buffer *_buffer
;
-
//QList<ChatLine*> _lines
;
+
int _width, _height
;
+
int _timestampWidth, _senderWidth
;
MessageModel *_model;
MessageModel *_model;
- QList<Chat
Item *> _item
s;
+ QList<Chat
Line *> _line
s;
};
};