[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kpresenter/part
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2008-10-03 6:14:39
Message-ID: 1223014479.408358.487.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 867214 by zachmann:

o don't show placeholders in presentation mode


 M  +14 -11    KPrShapeManagerAnimationStrategy.cpp  


--- trunk/koffice/kpresenter/part/KPrShapeManagerAnimationStrategy.cpp #867213:867214
@@ -24,6 +24,7 @@
 #include <KoShapeManager.h>
 
 #include "KPrShapeAnimations.h"
+#include "KPrPlaceholderShape.h"
 #include "KPrAnimationDirector.h"
 #include "shapeanimations/KPrShapeAnimation.h"
 
@@ -41,18 +42,20 @@
 
 void KPrShapeManagerAnimationStrategy::paint( KoShape * shape, QPainter &painter, \
const KoViewConverter &converter, bool forPrint )  {
-    if ( m_animationDirector->shapeShown( shape ) ) {
-        //kDebug() << shape;
-        painter.save();
-        painter.setMatrix( shape->absoluteTransformation( &converter ) * \
                painter.matrix() );
-        // animate shape
-        QPair<KPrShapeAnimation *, KPrAnimationData *> animation = \
                m_animationDirector->shapeAnimation( shape );
-        if ( animation.first ) {
-            animation.first->animate( painter, converter, animation.second );
+    if ( ! dynamic_cast<KPrPlaceholderShape *>( shape ) ) {
+        if ( m_animationDirector->shapeShown( shape ) ) {
+            //kDebug() << shape;
+            painter.save();
+            painter.setMatrix( shape->absoluteTransformation( &converter ) * \
painter.matrix() ); +            // animate shape
+            QPair<KPrShapeAnimation *, KPrAnimationData *> animation = \
m_animationDirector->shapeAnimation( shape ); +            if ( animation.first ) {
+                animation.first->animate( painter, converter, animation.second );
+            }
+            // paint shape
+            shapeManager()->paintShape( shape, painter, converter, forPrint );
+            painter.restore();  // for the matrix
         }
-        // paint shape
-        shapeManager()->paintShape( shape, painter, converter, forPrint );
-        painter.restore();  // for the matrix
     }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic