[Marble-commits] KDE/kdeedu/marble/src/lib

Bastian Holst bastianholst at gmx.de
Tue Mar 30 16:17:15 CEST 2010


SVN commit 1109081 by bholst:

Break long lines


 M  +10 -4     MarblePhysics.cpp  
 M  +2 -1      MarblePhysics.h  


--- trunk/KDE/kdeedu/marble/src/lib/MarblePhysics.cpp #1109080:1109081
@@ -103,8 +103,10 @@
 MarblePhysics::MarblePhysics( QObject * parent )
     : QObject( parent ), d(new MarblePhysicsPrivate)
 {
-    connect( &d->m_timeline, SIGNAL( valueChanged( qreal ) ), this, SLOT( updateProgress( qreal ) ) );
-    connect( &d->m_timeline, SIGNAL( finished() ), this, SIGNAL( finished() ) );
+    connect( &d->m_timeline, SIGNAL( valueChanged( qreal ) ),
+             this, SLOT( updateProgress( qreal ) ) );
+    connect( &d->m_timeline, SIGNAL( finished() ),
+             this, SIGNAL( finished() ) );
 }
 
 MarblePhysics::~MarblePhysics()
@@ -112,7 +114,8 @@
     delete d;
 }
 
-void MarblePhysics::flyTo( const GeoDataLookAt &source, const GeoDataLookAt &target, ViewportParams *viewport, FlyToMode mode )
+void MarblePhysics::flyTo( const GeoDataLookAt &source, const GeoDataLookAt &target,
+                           ViewportParams *viewport, FlyToMode mode )
 {
     d->m_timeline.stop();
     d->m_source = source;
@@ -121,7 +124,10 @@
     FlyToMode effectiveMode = mode;
     qreal x(0), y(0);
     bool globeHidesPoint(false);
-    bool onScreen = viewport->currentProjection()->screenCoordinates(target.coordinates(), viewport, x, y, globeHidesPoint);
+    bool onScreen = viewport->currentProjection()->screenCoordinates( target.coordinates(),
+                                                                      viewport,
+                                                                      x, y,
+                                                                      globeHidesPoint );
     bool invisible = globeHidesPoint || !onScreen;
 
     if (effectiveMode == Automatic)
--- trunk/KDE/kdeedu/marble/src/lib/MarblePhysics.h #1109080:1109081
@@ -46,7 +46,8 @@
       * @param mode Interpolation (animation) mode. Instant means no interpolation.
       * @see positionReached
       */
-    void flyTo( const GeoDataLookAt &source, const GeoDataLookAt &target, ViewportParams *viewport, FlyToMode mode = Instant );
+    void flyTo( const GeoDataLookAt &source, const GeoDataLookAt &target,
+                ViewportParams *viewport, FlyToMode mode = Instant );
 
  Q_SIGNALS:
     /**


More information about the Marble-commits mailing list