#include <QDebug>
#include <QMouseEvent>
-#ifndef Q_WS_MAEMO_5
- #include <QGLWidget>
-#endif // Q_WS_MAEMO_5
-
#include "mapcommon.h"
#include "mapview.h"
: 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);
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
# -----------------------------------------------------------------