X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fchatview.cpp;h=918cec64a42bb662d0729d9fdeb005435c209344;hb=HEAD;hp=3e0b62113063d96a29ea2a7a9e04bf6643e9676e;hpb=24c7de34254b5de4cf28045a6923a527e06f7290;p=quassel.git diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 3e0b6211..1a24c6ff 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -112,7 +112,7 @@ bool ChatView::event(QEvent* event) } if (event->type() == QEvent::TouchBegin && ((QTouchEvent*)event)->device()->type() == QTouchDevice::TouchScreen) { - // Enable scrolling by draging, disable selecting/clicking content + // Enable scrolling by dragging, disable selecting/clicking content setDragMode(QGraphicsView::ScrollHandDrag); setInteractive(false); // if scrollbar is not visible we need to request backlog below else we need to accept @@ -191,7 +191,7 @@ void ChatView::resizeEvent(QResizeEvent* event) // if scrolling to bottom, do it immediately. if (atBottom) { - // we can reduce viewport updates if we scroll to the bottom allready at the beginning + // we can reduce viewport updates if we scroll to the bottom already at the beginning verticalScrollBar()->setValue(verticalScrollBar()->maximum()); }