From: Flavio Tordini Date: Tue, 21 Jul 2009 20:15:42 +0000 (+0200) Subject: Attempt to reduce flicker X-Git-Tag: 0.5~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5742c27184efede6d2900b87c5f03b199ecfec15;p=minitube Attempt to reduce flicker --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 2e9406b..692ff46 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -330,6 +330,8 @@ void MainWindow::goBack() { void MainWindow::showWidget ( QWidget* widget ) { + setUpdatesEnabled(false); + // call hide method on the current view View* oldView = dynamic_cast (views->currentWidget()); if (oldView != NULL) { @@ -367,6 +369,7 @@ void MainWindow::showWidget ( QWidget* widget ) { fadeInWidget(views->currentWidget(), widget); views->setCurrentWidget(widget); + setUpdatesEnabled(true); } void MainWindow::fadeInWidget(QWidget *oldWidget, QWidget *newWidget) {