1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix showEvent calling centerOn

This commit is contained in:
krepa098 2015-01-27 09:58:08 +01:00
parent f509e07c45
commit 57485368cb
2 changed files with 8 additions and 0 deletions

View File

@ -728,3 +728,10 @@ void ChatLog::onWorkerTimeout()
verticalScrollBar()->show();
}
}
void ChatLog::showEvent(QShowEvent *)
{
// Empty.
// The default implementation calls centerOn - for some reason - causing
// the scrollbar to move.
}

View File

@ -80,6 +80,7 @@ protected:
virtual void mouseMoveEvent(QMouseEvent* ev);
virtual void scrollContentsBy(int dx, int dy);
virtual void resizeEvent(QResizeEvent *ev);
virtual void showEvent(QShowEvent *);
void updateMultiSelectionRect();
void updateTypingNotification();