X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=c69f0e12402509196b53a5a1bc06ed7793bc778f;hp=e72308e43e0dba33ea322bbcafd32e46d8a50af5;hb=9d52e49424afb60c2f28073051c1dbf25f47adec;hpb=dbefd590650e9053c7a1513a5f49aad3e582108a diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index e72308e4..c69f0e12 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -49,6 +49,8 @@ class ChatScene : public QGraphicsScene { inline bool isFetchingBacklog() const; inline bool isBacklogFetchingEnabled() const; inline BufferId bufferForBacklogFetching() const; + int sectionByScenePos(int x); + inline int sectionByScenePos(const QPoint &pos) { return sectionByScenePos(pos.x()); } public slots: void setWidth(qreal);