Also applied kinetic spinning like it is with changing position.
Details
Details
- Reviewers
nienhueser - Group Reviewers
Marble - Commits
- R34:fd83b5dc58a3: Introduced rotation the globe by right mouse button.
to-check: open a map and push the right button of mouse, the globe is going to be rotated by moving mouse by x and y axis.
Also if you unclick the button, kinetic spinning will be enabled like it is when you use left mouse button.
Diff Detail
Diff Detail
- Repository
- R34 Marble
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Awesome work! The patch looks very clean and it integrates well with the current user interface.
It also enables some nice follow-up tasks, e.g. taking heading into account in the compass plugin (more than two states as it has now) or rotating the map to follow the navigation direction during turn-by-turn navigation.
src/lib/marble/MarbleInputHandler.cpp | ||
---|---|---|
800 | qAbs (does not compile with abs here, same for the other ones) | |
801 | qAbs | |
src/lib/marble/kineticmodel.cpp | ||
201 | qAbs |
src/lib/marble/MarbleInputHandler.cpp | ||
---|---|---|
192 | m_heading should be initialized here as well |