diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-05-28 13:17:48 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-05-28 13:17:48 (GMT) |
commit | 19fc2c24f02ecef0c9a466d5351aa44ceb973bf3 (patch) | |
tree | 63e64d36f718517e558317276a0e9804e9889640 /demos/qtdemo/mainwindow.cpp | |
parent | b0b4ca6547807fc602176c1ad262f15f6858116a (diff) | |
parent | 71425f24893fecb15cd4d01e6dc3d391051e9d6b (diff) | |
download | Qt-19fc2c24f02ecef0c9a466d5351aa44ceb973bf3.zip Qt-19fc2c24f02ecef0c9a466d5351aa44ceb973bf3.tar.gz Qt-19fc2c24f02ecef0c9a466d5351aa44ceb973bf3.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'demos/qtdemo/mainwindow.cpp')
-rw-r--r-- | demos/qtdemo/mainwindow.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/demos/qtdemo/mainwindow.cpp b/demos/qtdemo/mainwindow.cpp index 45ec9a6..753014a 100644 --- a/demos/qtdemo/mainwindow.cpp +++ b/demos/qtdemo/mainwindow.cpp @@ -266,7 +266,7 @@ void MainWindow::setupSceneItems() { if (Colors::showFps){ this->fpsLabel = new DemoTextItem(QString("FPS: --"), Colors::buttonFont(), Qt::white, -1, this->scene, 0, DemoTextItem::DYNAMIC_TEXT); - this->fpsLabel->setZValue(100); + this->fpsLabel->setZValue(1000); this->fpsLabel->setPos(Colors::stageStartX, 600 - QFontMetricsF(Colors::buttonFont()).height() - 5); } @@ -311,15 +311,9 @@ void MainWindow::checkAdapt() } //Note: Because we don't adapt later in the program, if blur makes FPS plummet then we won't catch it - if (!Colors::noBlur && MenuManager::instance()->mainSceneBlur && this->mainSceneRoot){ + if (!Colors::noBlur && MenuManager::instance()->declarativeEngine && this->mainSceneRoot){ Colors::noBlur = true; - this->mainSceneRoot->setGraphicsEffect(0); - MenuManager::instance()->mainSceneBlur = 0; - if(MenuManager::instance()->qmlRoot){ - MenuManager::instance()->qmlRoot->setGraphicsEffect(0); - MenuManager::instance()->declarativeEngine->rootContext()->setContextProperty("realBlur", 0); - } - MenuManager::instance()->qmlShadow = 0; + MenuManager::instance()->declarativeEngine->rootContext()->setContextProperty("useBlur", false); if (Colors::verbose) qDebug() << "- benchmark adaption: removed blur (fps < 30)"; } |