[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sat May 1 18:35:45 CEST 2010
SVN commit 1121544 by nienhueser:
Allow right / middle mouse button interaction in point selection mode. Enables e.g. zooming.
M +5 -1 RoutingLayer.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingLayer.cpp #1121543:1121544
@@ -262,7 +262,7 @@
bool RoutingLayerPrivate::handleMouseButtonPress( QMouseEvent *e )
{
if ( m_pointSelection ) {
- return true;
+ return e->button() == Qt::LeftButton;
}
foreach( const SkeletonRegion ®ion, m_regions ) {
@@ -334,13 +334,17 @@
}
if ( m_pointSelection ) {
+ if ( e->button() == Qt::LeftButton ) {
qreal lon( 0.0 ), lat( 0.0 );
if ( m_marbleWidget->geoCoordinates( e->pos().x(), e->pos().y(),
lon, lat, GeoDataCoordinates::Radian ) ) {
emit q->pointSelected( GeoDataCoordinates( lon, lat ) );
return true;
}
+ } else {
+ return false;
}
+ }
if ( m_movingIndex >= 0 ) {
m_movingIndex = -1;
More information about the Marble-commits
mailing list