projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce an id string for the views (provided by MessageFilter); allows storing...
[quassel.git]
/
src
/
qtui
/
chatscene.h
diff --git
a/src/qtui/chatscene.h
b/src/qtui/chatscene.h
index
5f8057a
..
8701f69
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-28,34
+28,41
@@
class AbstractUiMsg;
class Buffer;
class ChatItem;
class ChatLine;
class Buffer;
class ChatItem;
class ChatLine;
+class ColumnHandleItem;
+
class QGraphicsSceneMouseEvent;
class ChatScene : public QGraphicsScene {
Q_OBJECT
public:
class QGraphicsSceneMouseEvent;
class ChatScene : public QGraphicsScene {
Q_OBJECT
public:
- ChatScene(QAbstractItemModel *model, QObject *parent);
+ ChatScene(QAbstractItemModel *model,
const QString &idString,
QObject *parent);
virtual ~ChatScene();
Buffer *buffer() const;
inline QAbstractItemModel *model() const { return _model; }
public slots:
virtual ~ChatScene();
Buffer *buffer() const;
inline QAbstractItemModel *model() const { return _model; }
public slots:
- void setWidth(int);
+ void setWidth(qreal);
+
+ private slots:
+ void rectChanged(const QRectF &);
+ void handlePositionChanged(qreal xpos);
signals:
signals:
- void heightChanged(
int
height);
+ void heightChanged(
qreal
height);
protected slots:
void rowsInserted(const QModelIndex &, int, int);
protected slots:
void rowsInserted(const QModelIndex &, int, int);
- void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
private:
private:
-
int _width, _height
;
-
int _timestampWidth, _senderWidth
;
+
QString _idString
;
+
qreal _width, _height
;
QAbstractItemModel *_model;
QList<ChatLine *> _lines;
QAbstractItemModel *_model;
QList<ChatLine *> _lines;
+ ColumnHandleItem *firstColHandle, *secondColHandle;
+ qreal firstColHandlePos, secondColHandlePos;
};
#endif
};
#endif