X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=aeac420b16725ad01a43d13ab398fab4825eb8fa;hp=a6578fa657dcb7ca6711486c0c6a3dc169d28799;hb=9d52e49424afb60c2f28073051c1dbf25f47adec;hpb=dbefd590650e9053c7a1513a5f49aad3e582108a diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index a6578fa6..aeac420b 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -305,3 +305,12 @@ void ChatScene::requestBacklogIfNeeded() { _lastBacklogSize = model()->rowCount(); } } + +int ChatScene::sectionByScenePos(int x) { + if(x < firstColHandlePos) + return ChatLineModel::TimestampColumn; + if(x < secondColHandlePos) + return ChatLineModel::SenderColumn; + + return ChatLineModel::ContentsColumn; +}