Removed OpenGL
authorSami Rämö <sami.ramo@ixonos.com>
Wed, 28 Apr 2010 13:02:06 +0000 (16:02 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Wed, 28 Apr 2010 13:02:06 +0000 (16:02 +0300)
src/map/mapview.cpp
src/src.pro

index 2175fd4..9071e85 100644 (file)
 #include <QDebug>
 #include <QMouseEvent>
 
-#ifndef Q_WS_MAEMO_5
-    #include <QGLWidget>
-#endif // Q_WS_MAEMO_5
-
 #include "mapcommon.h"
 #include "mapview.h"
 
@@ -35,14 +31,6 @@ MapView::MapView(QWidget *parent)
     : QGraphicsView(parent)
     , m_timerID(NULL)
 {
-/**
-  * Use OpenGL for desktop to gain some performance in map view.
-  * OpenGL can't be used in scratchbox.
-  */
-#ifndef Q_WS_MAEMO_5
-    setViewport(new QGLWidget(QGLFormat(QGL::DoubleBuffer)));
-#endif // !Q_WS_MAEMO_5
-
     setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
     setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
 
index 0c7b4f3..51286ab 100644 (file)
@@ -47,14 +47,6 @@ HEADERS += ui/mainwindow.h \
 QT += network \
     webkit
 
-# use don't use OpenGL when building in scratchbox
-!maemo5 { 
-    QT += opengl
-    message(OpenGL built in)
-    message(Make sure you have OpenGL development headers installed)
-    message(install headers with: sudo apt-get install libgl-dev libglu-dev)
-}
-
 # -----------------------------------------------------------------
 # Debian packetizing additions
 # -----------------------------------------------------------------