summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo/mainwindow.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-06-05 08:52:24 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-06-05 08:52:24 (GMT)
commit6d25d222b2bb418139e123b59366db908ee3188a (patch)
treee00b67dcf860d5cd9bcdcaccf8bfc56f55269e94 /demos/qtdemo/mainwindow.cpp
parentcea8678e5fca8b33bbd5da057282888bc260a5c9 (diff)
parente50916796adc0dee112505ed617f9b83e99526fb (diff)
downloadQt-6d25d222b2bb418139e123b59366db908ee3188a.zip
Qt-6d25d222b2bb418139e123b59366db908ee3188a.tar.gz
Qt-6d25d222b2bb418139e123b59366db908ee3188a.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into qt-main/qgraphicssceneindex
Diffstat (limited to 'demos/qtdemo/mainwindow.cpp')
-rw-r--r--demos/qtdemo/mainwindow.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/demos/qtdemo/mainwindow.cpp b/demos/qtdemo/mainwindow.cpp
index 0da69b2..858d389 100644
--- a/demos/qtdemo/mainwindow.cpp
+++ b/demos/qtdemo/mainwindow.cpp
@@ -185,7 +185,6 @@ void MainWindow::switchTimerOnOff(bool on)
if (on && !Colors::noTimerUpdate){
this->useTimer = true;
- this->setViewportUpdateMode(QGraphicsView::NoViewportUpdate);
this->fpsTime = QTime::currentTime();
this->updateTimer.start(int(1000 / Colors::fps));
}
@@ -257,10 +256,6 @@ void MainWindow::tick()
if (MenuManager::instance()->ticker)
MenuManager::instance()->ticker->tick();
- this->viewport()->update();
- if (Colors::softwareRendering)
- QApplication::syncX();
-
if (this->useTimer)
this->updateTimer.start(int(1000 / Colors::fps));
}
@@ -428,9 +423,7 @@ void MainWindow::focusInEvent(QFocusEvent *)
if (MenuManager::instance()->ticker)
MenuManager::instance()->ticker->pause(false);
- int code = MenuManager::instance()->currentMenuCode;
- if (code == MenuManager::ROOT || code == MenuManager::MENU1)
- this->switchTimerOnOff(true);
+ this->switchTimerOnOff(true);
this->pausedLabel->setRecursiveVisible(false);
}
@@ -443,9 +436,7 @@ void MainWindow::focusOutEvent(QFocusEvent *)
if (MenuManager::instance()->ticker)
MenuManager::instance()->ticker->pause(true);
- int code = MenuManager::instance()->currentMenuCode;
- if (code == MenuManager::ROOT || code == MenuManager::MENU1)
- this->switchTimerOnOff(false);
+ this->switchTimerOnOff(false);
this->pausedLabel->setRecursiveVisible(true);
}