X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=2f568d31ff0b557f567554c9432575785922d79a;hp=9ac653b73741bcb25e51718b934b887ebb060868;hb=c902a2a58671e7d145f5e879d87100844bd20df4;hpb=80fcc77b8883ef496fcf0ee9b43cf678232e175c diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index 9ac653b7..2f568d31 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -56,7 +56,8 @@ public: public slots: void updateForViewport(qreal width, qreal height); - void setWidth(qreal, bool forceReposition = false); + //void setWidth(qreal, bool forceReposition = false); + void setWidth(qreal width); // these are used by the chatitems to notify the scene and manage selections void setSelectingItem(ChatItem *item); @@ -83,7 +84,8 @@ protected slots: void rowsAboutToBeRemoved(const QModelIndex &, int, int); private slots: - void handlePositionChanged(qreal xpos); + void firstHandlePositionChanged(qreal xpos); + void secondHandlePositionChanged(qreal xpos); void showWebPreviewEvent(); void deleteWebPreviewEvent(); @@ -101,8 +103,8 @@ private: // we store the size in a member variable. QRectF _sceneRect; int _firstLineRow; // the first row to display (aka: not a daychange msg) - void updateSceneRect(); void updateSceneRect(qreal width); + inline void updateSceneRect() { updateSceneRect(_sceneRect.width()); } void updateSceneRect(const QRectF &rect); qreal _viewportHeight;