projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quassel now handles even huge ChatScenes without slowing to a crawl.
[quassel.git]
/
src
/
qtui
/
chatscene.h
diff --git
a/src/qtui/chatscene.h
b/src/qtui/chatscene.h
index
8122872
..
a0bcefc
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-44,12
+44,16
@@
class ChatScene : public QGraphicsScene {
public slots:
void setWidth(int);
public slots:
void setWidth(int);
- protected slots:
+ signals:
+ void heightChanged(int height);
+ protected slots:
+ void rowsInserted(const QModelIndex &, int, int);
void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
private:
void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
private:
- int _width;
+ int _width, _height;
+ int _timestampWidth, _senderWidth;
MessageModel *_model;
QList<ChatLine *> _lines;
MessageModel *_model;
QList<ChatLine *> _lines;