X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=9d8a5651e00b433b791cb5df2613639a4ec548ee;hp=5f8057ab1def3fd39e4e4471b48ffad406542d77;hb=206ce9444661cc7b2f65bdd8c8c0d1c365e6306f;hpb=920feae12b62b749299014ce85241165e09b7f4b;ds=sidebyside diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index 5f8057ab..9d8a5651 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -28,6 +28,8 @@ class AbstractUiMsg; class Buffer; class ChatItem; class ChatLine; +class ColumnHandleItem; + class QGraphicsSceneMouseEvent; class ChatScene : public QGraphicsScene { @@ -41,21 +43,24 @@ class ChatScene : public QGraphicsScene { inline QAbstractItemModel *model() const { return _model; } public slots: - void setWidth(int); + void setWidth(qreal); + + private slots: + void rectChanged(const QRectF &); signals: - void heightChanged(int height); + void heightChanged(qreal height); protected slots: void rowsInserted(const QModelIndex &, int, int); - void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent ); private: - int _width, _height; - int _timestampWidth, _senderWidth; + qreal _width, _height; QAbstractItemModel *_model; QList _lines; + ColumnHandleItem *firstColHandle, *secondColHandle; + qreal firstColHandlePos, secondColHandlePos; }; #endif