Gestures: inventor touch events and device

This commit is contained in:
DeepSOIC
2015-03-28 01:02:50 +03:00
committed by wmayer
parent a53940fcf6
commit 26fb298043
4 changed files with 308 additions and 0 deletions

View File

@@ -123,6 +123,7 @@
#include <Inventor/draggers/SoCenterballDragger.h>
#include <Inventor/annex/Profiler/SoProfiler.h>
#include <SoTouchEvents.h>
#include <qgesture.h>
#include <WinNativeGestureRecognizers.h>
@@ -482,6 +483,7 @@ void View3DInventorViewer::init()
viewerEventFilter = new ViewerEventFilter;
installEventFilter(viewerEventFilter);
getEventFilter()->registerInputDevice(new SpaceNavigatorDevice);
getEventFilter()->registerInputDevice(new GesturesDevice(this));
this->grabGesture(Qt::PanGesture);
this->grabGesture(Qt::PinchGesture);