diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-04-28 09:24:33 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-04-28 09:24:33 (GMT) |
commit | 6c0ec6051464196fdc45c1b74cb380a9659fc6f4 (patch) | |
tree | 98241c2755ef258b3dd0e70113aaeae540d3464c /demos/qtdemo/mainwindow.cpp | |
parent | f65e60b49395d68be78259ec82c9969b267e591c (diff) | |
download | Qt-6c0ec6051464196fdc45c1b74cb380a9659fc6f4.zip Qt-6c0ec6051464196fdc45c1b74cb380a9659fc6f4.tar.gz Qt-6c0ec6051464196fdc45c1b74cb380a9659fc6f4.tar.bz2 |
Fixed Compile after removal of D3D.
Reviewed-by: Trond Kjernåsen <trond.kjernasen@nokia.com>
Diffstat (limited to 'demos/qtdemo/mainwindow.cpp')
-rw-r--r-- | demos/qtdemo/mainwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/qtdemo/mainwindow.cpp b/demos/qtdemo/mainwindow.cpp index 151fa5c..0da69b2 100644 --- a/demos/qtdemo/mainwindow.cpp +++ b/demos/qtdemo/mainwindow.cpp @@ -101,7 +101,7 @@ void MainWindow::setRenderingSystem() QWidget *viewport = 0; #ifndef QT_NO_OPENGL - else if (Colors::openGlRendering){ + if (Colors::openGlRendering) { QGLWidget *glw = new QGLWidget(QGLFormat(QGL::SampleBuffers)); if (Colors::noScreenSync) glw->format().setSwapInterval(0); @@ -110,9 +110,10 @@ void MainWindow::setRenderingSystem() setCacheMode(QGraphicsView::CacheNone); if (Colors::verbose) qDebug() << "- using OpenGL"; - } + } else // software rendering #endif - else{ // software rendering + { + // software rendering viewport = new QWidget; setCacheMode(QGraphicsView::CacheBackground); if (Colors::verbose) |