How to disable inertial earth rotation in Qt4.x versions of KDE Marble

156 Views Asked by At

When I drag and move left mouse, map continues moving after the mouse release. You can deactivate this feature in Qt5 Marble versions by setting:

marbleWidget->inputHandler()->setInertialEarthRotationEnabled( false );

This function does not exist in older Qt4.x Marble APIs. Is there an equivalent function or way to get the same result?

1

There are 1 best solutions below

1
On BEST ANSWER

Which version are you looking at exactly? We had some refactorings in the input handler code, and the current method setInertialEarthRotationEnabled(bool) was called setKineticScrollingEnabled(bool) some years ago, see https://github.com/KDE/marble/blob/KDE/4.10/src/lib/MarbleWidgetInputHandler.h.