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

Jason Harris kstars at 30doradus.org
Sun Apr 27 01:55:56 CEST 2008


SVN commit 801599 by harris:

Make sure Angular ruler gets drawn when using horizontal coordinates (missing 
update()).

CCMAIL: kstars-devel at kde.org


 M  +6 -1      skymap.cpp  
 M  +2 -1      skymapdraw.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #801598:801599
@@ -437,6 +437,8 @@
         AngularRuler.append( mousePoint() );
         AngularRuler.append( mousePoint() );
     }
+
+    AngularRuler.update( data );
 }
 
 void SkyMap::slotEndAngularDistance() {
@@ -453,6 +455,8 @@
         } else
             AngularRuler.setPoint( 1, mousePoint() );
 
+        AngularRuler.update( data );
+
         angularDistance = AngularRuler.angularSize();
         sbMessage += i18n( "Angular distance: %1", angularDistance.toDMSString() );
 
@@ -1684,7 +1688,8 @@
 }
 
 void SkyMap::updateAngleRuler() {
-      AngularRuler.setPoint( 1, mousePoint() );
+    AngularRuler.setPoint( 1, mousePoint() );
+    AngularRuler.update( data );
 }
 
 bool SkyMap::isSlewing() const  {
--- trunk/KDE/kdeedu/kstars/kstars/skymapdraw.cpp #801598:801599
@@ -152,10 +152,11 @@
 }
 
 void SkyMap::drawAngleRuler( QPainter &p ) {
-    p.setPen( QPen( data->colorScheme()->colorNamed( "AngularRuler" ), 1.0, Qt::DotLine ) );
+    p.setPen( QPen( data->colorScheme()->colorNamed( "AngularRuler" ), 3.0, Qt::DotLine ) );
 
     QPointF startPoint = toScreen( AngularRuler.point(0) );
     QPointF endPoint = toScreen( AngularRuler.point(1) );
+
     p.drawLine( startPoint, endPoint );
 }
 


More information about the Kstars-devel mailing list