[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3447: Fix a case issue spotted by opello and fix a build error enc (vidalia/branches/marble/src/vidalia/network)
Author: edmanm
Date: 2009-01-17 15:37:05 -0500 (Sat, 17 Jan 2009)
New Revision: 3447
Modified:
vidalia/branches/marble/src/vidalia/network/tormapwidgetinputhandler.cpp
Log:
Fix a case issue spotted by opello and fix a build error encountered by
phobos.
Modified: vidalia/branches/marble/src/vidalia/network/tormapwidgetinputhandler.cpp
===================================================================
--- vidalia/branches/marble/src/vidalia/network/tormapwidgetinputhandler.cpp 2009-01-17 06:58:02 UTC (rev 3446)
+++ vidalia/branches/marble/src/vidalia/network/tormapwidgetinputhandler.cpp 2009-01-17 20:37:05 UTC (rev 3447)
@@ -17,7 +17,7 @@
#include <MarbleMap.h>
#include <MarbleModel.h>
#include <ViewParams.h>
-#include <ViewPortParams.h>
+#include <ViewportParams.h>
#include "tormapwidgetinputhandler.h"
@@ -44,7 +44,8 @@
TorMapWidgetInputHandler::eventFilter(QObject *obj, QEvent *e)
{
Q_UNUSED(obj);
-
+
+ QWheelEvent *wheelEvent = 0;
QMouseEvent *mouseEvent = static_cast<QMouseEvent*>(e);
switch (e->type()) {
@@ -116,7 +117,7 @@
// Adjust the zoom level on the map
m_widget->setViewContext(Marble::Animation);
- QWheelEvent *wheelEvent = static_cast<QWheelEvent*>(e);
+ wheelEvent = static_cast<QWheelEvent*>(e);
m_widget->zoomViewBy((int)(wheelEvent->delta() / 3));
m_mouseWheelTimer->start(400);
return true;