Commit 7d431071 authored by Andrew Flegg's avatar Andrew Flegg

Use OpenGL rendering for slight performance improvement.

parent 77236c76
......@@ -21,6 +21,7 @@ symbian:TARGET.CAPABILITY =
# MOBILITY variable.
CONFIG += mobility
MOBILITY += sensors
QT += opengl
# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp
......
#include <QtGui/QApplication>
#include <QtDeclarative>
#include <QGLWidget>
#include "qmlapplicationviewer.h"
#include "activemonitor.h"
#include <stdio.h>
......@@ -25,6 +26,7 @@ int main(int argc, char *argv[])
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
viewer.engine()->addImportPath(QString("/opt/qtm11/imports"));
viewer.setWindowTitle("Attitude");
viewer.setViewport(new QGLWidget);
#if defined(Q_OS__SYMBIAN)
viewer.engine()->rootContext()->setContextProperty("rotateFudge", -90);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment