From 5742c27184efede6d2900b87c5f03b199ecfec15 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 21 Jul 2009 22:15:42 +0200 Subject: [PATCH] Attempt to reduce flicker --- src/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.39.5