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

Fix performance regression, revert part of 87c9bbf1e6

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-30 22:46:24 +02:00
parent c6f01c31ab
commit dd96df9940

View File

@ -55,8 +55,9 @@ bool AdjustingScrollArea::eventFilter(QObject *obj, QEvent *ev)
{ {
// workaround: sometimes a child widget gets drawn on top of the scrollbar // workaround: sometimes a child widget gets drawn on top of the scrollbar
// so we trigger a repaint afterwards // so we trigger a repaint afterwards
verticalScrollBar()->update(); // => Actually, we don't. This triggers an infinite loop of QEvent::UpdateRequest and burns 100% CPU !
horizontalScrollBar()->update(); //verticalScrollBar()->update();
//horizontalScrollBar()->update();
} }
return QObject::eventFilter(obj, ev); return QObject::eventFilter(obj, ev);