projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing BR #261 (making fields removable from the chatmonitor). Changes effect current...
[quassel.git]
/
src
/
qtui
/
chatscene.cpp
diff --git
a/src/qtui/chatscene.cpp
b/src/qtui/chatscene.cpp
index
a6578fa
..
aeac420
100644
(file)
--- a/
src/qtui/chatscene.cpp
+++ b/
src/qtui/chatscene.cpp
@@
-305,3
+305,12
@@
void ChatScene::requestBacklogIfNeeded() {
_lastBacklogSize = model()->rowCount();
}
}
_lastBacklogSize = model()->rowCount();
}
}
+
+int ChatScene::sectionByScenePos(int x) {
+ if(x < firstColHandlePos)
+ return ChatLineModel::TimestampColumn;
+ if(x < secondColHandlePos)
+ return ChatLineModel::SenderColumn;
+
+ return ChatLineModel::ContentsColumn;
+}