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

Jason Harris jharris at 30doradus.org
Mon Aug 13 23:03:54 CEST 2007


Yeah, that's great!  We should have done it a long time ago :)

On Monday 13 August 2007 13:40, James Bowlin wrote:
> 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
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel

-- 
Jason Harris
jharris at 30doradus.org


More information about the Kstars-devel mailing list