X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.cpp;h=358eb12b9ad095828694142e3ecfebc39c0b3843;hp=8199648820e418f6030d342834fc59e5f7f50853;hb=3271ab1dff7df6f6464cb714d675291aae791639;hpb=45189a3cff5c5365cd83863fc72c8a57a6f88aea diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index 81996488..358eb12b 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -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());