projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't scroll to bottom on resize
[quassel.git]
/
src
/
qtui
/
chatview.cpp
diff --git
a/src/qtui/chatview.cpp
b/src/qtui/chatview.cpp
index
53c4392
..
b40b290
100644
(file)
--- a/
src/qtui/chatview.cpp
+++ b/
src/qtui/chatview.cpp
@@
-128,16
+128,9
@@
void ChatView::resizeEvent(QResizeEvent *event)
{
QGraphicsView::resizeEvent(event);
{
QGraphicsView::resizeEvent(event);
- // FIXME: do we really need to scroll down on resize?
-
- // we can reduce viewport updates if we scroll to the bottom allready at the beginning
- verticalScrollBar()->setValue(verticalScrollBar()->maximum());
scene()->updateForViewport(viewport()->width(), viewport()->height());
adjustSceneRect();
scene()->updateForViewport(viewport()->width(), viewport()->height());
adjustSceneRect();
- _lastScrollbarPos = verticalScrollBar()->maximum();
- verticalScrollBar()->setValue(verticalScrollBar()->maximum());
-
checkChatLineCaches();
}
checkChatLineCaches();
}