[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Fri Sep 5 17:55:40 CEST 2003


CVS commit by harris: 

Fixes for zoom-box feature:
- the zoom box was activated if user Ctrl+clicked without dragging.  
  The zoom-box is now only activated if the mouse is dragged with 
  Ctrl pressed.

- The new focus position after zooming was not persistent if the user
  had been tracking on an object.  Fixed.

CCMAIL: kstars-devel at kde.org


  M +6 -1      skymapevents.cpp   1.69


--- kdeedu/kstars/kstars/skymapevents.cpp  #1.68:1.69
@@ -481,4 +481,7 @@ void SkyMap::mouseReleaseEvent( QMouseEv
 
                 SkyPoint newcenter = dXdYToRaDec( dx, dy, data->options->useAltAz, data->LST, data->geo()->lat() );
+                setClickedPoint( &newcenter );
+                setClickedObject( NULL );
+                setFocusObject( NULL );
                 setFocus( &newcenter );
                 setDestination( &newcenter );
@@ -488,4 +491,6 @@ void SkyMap::mouseReleaseEvent( QMouseEv
                 ZoomRect = QRect(); //invalidate ZoomRect
                 forceUpdate();
+        } else {
+                ZoomRect = QRect(); //just in case user Ctrl+clicked + released w/o dragging...
         }
 




More information about the Kstars-devel mailing list