ChatView now asks the scene if scrolling is ok on message appending
[quassel.git] / src / qtui / chatscene.cpp
index 8199648..358eb12 100644 (file)
@@ -513,6 +513,15 @@ void ChatScene::updateSelection(const QPointF &pos) {
   }
 }
 
   }
 }
 
+bool ChatScene::isScrollingAllowed() const {
+  if(_isSelecting)
+    return false;
+
+  // TODO: Handle clicks and single-item selections too
+
+  return true;
+}
+
 void ChatScene::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
   if(_isSelecting && event->buttons() == Qt::LeftButton) {
     updateSelection(event->scenePos());
 void ChatScene::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
   if(_isSelecting && event->buttons() == Qt::LeftButton) {
     updateSelection(event->scenePos());