[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/lib/routing
From: Dennis Nienhüser <earthwings () gentoo ! org>
Date: 2010-05-01 16:35:45
Message-ID: 20100501163545.618A1AC8AA () svn ! kde ! org
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic