简体   繁体   中英

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

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM