[Kstars-devel] KDE/kdeedu/kstars/kstars

James Bowlin bowlin at mindspring.com
Mon Aug 13 22:40:28 CEST 2007


SVN commit 699649 by jbowlin:

Added slewing to the zoom keys: plus, equals, underscore, and minus.

It was a simple change and is pretty cool.  I had originally intended
to have control+ those keys take larger zoom steps but this was much
easier to implement.  If people don't like this, I'll be glad to
remove it.  I did it to make debugging zoom-dependent label thresholds
easier.

CCMAIL: kstars-devel at kde.org


 M  +7 -0      skymapevents.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymapevents.cpp #699648:699649
@@ -141,11 +141,13 @@
 		case Qt::Key_Plus:   //Zoom in
 		case Qt::Key_Equal:
 			if ( ks ) ks->slotZoomIn();
+			slewing = true;
 			break;
 
 		case Qt::Key_Minus:  //Zoom out
 		case Qt::Key_Underscore:
 			if ( ks ) ks->slotZoomOut();
+			slewing = true;
 			break;
 
 //In the following cases, we set slewing=true in order to disengage tracking
@@ -393,6 +395,11 @@
 
 void SkyMap::keyReleaseEvent( QKeyEvent *e ) {
 	switch ( e->key() ) {
+		case Qt::Key_Plus:   //Zoom in
+		case Qt::Key_Equal:
+		case Qt::Key_Minus:  //Zoom out
+		case Qt::Key_Underscore:
+
 		case Qt::Key_Left :  //no break; continue to Qt::Key_Down
 		case Qt::Key_Right :  //no break; continue to Qt::Key_Down
 		case Qt::Key_Up :  //no break; continue to Qt::Key_Down


More information about the Kstars-devel mailing list