Changeset 846 for trunk/demos/qtdemo/mainwindow.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/demos/qtdemo/mainwindow.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 267 267 if (Colors::showFps){ 268 268 this->fpsLabel = new DemoTextItem(QString("FPS: --"), Colors::buttonFont(), Qt::white, -1, this->scene, 0, DemoTextItem::DYNAMIC_TEXT); 269 this->fpsLabel->setZValue(100 );269 this->fpsLabel->setZValue(100); 270 270 this->fpsLabel->setPos(Colors::stageStartX, 600 - QFontMetricsF(Colors::buttonFont()).height() - 5); 271 271 } 272 272 273 this->companyLogo = new ImageItem(QImage(":/images/trolltech-logo.png"), 1000, 1000, this->scene, 0, true, 0.5f); 274 this->qtLogo = new ImageItem(QImage(":/images/qtlogo_small.png"), 1000, 1000, this->scene, 0, true, 0.5f); 273 this->mainSceneRoot = new QGraphicsWidget(); 274 this->scene->addItem(mainSceneRoot); 275 this->companyLogo = new ImageItem(QImage(":/images/trolltech-logo.png"), 1000, 1000, this->scene, mainSceneRoot, true, 0.5f); 276 this->qtLogo = new ImageItem(QImage(":/images/qtlogo_small.png"), 1000, 1000, this->scene, mainSceneRoot, true, 0.5f); 275 277 this->companyLogo->setZValue(100); 276 278 this->qtLogo->setZValue(100); … … 377 379 QApplication::quit(); 378 380 } 379 else if (event->key() == Qt::Key_ 1){381 else if (event->key() == Qt::Key_1){ 380 382 QString s(""); 381 383 s += "Rendering system: "; … … 387 389 s += "\nAdapt: "; 388 390 s += Colors::noAdapt ? "off" : "on"; 389 s += "\nAdaption occur ed: ";391 s += "\nAdaption occured: "; 390 392 s += Colors::adapted ? "yes" : "no"; 391 393 s += "\nOpenGL version: "; … … 416 418 QMessageBox::information(0, QString("Current configuration"), s); 417 419 } 420 418 421 } 419 422
Note:
See TracChangeset
for help on using the changeset viewer.