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:
parent
f509e07c45
commit
57485368cb
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user