[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Wed Aug 10 00:17:53 CEST 2005


SVN commit 444369 by rchern:

redundant code

 M  +0 -23     kstviewellipse.cpp  
 M  +0 -3      kstviewellipse.h  
 M  +1 -1      kstviewobject.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewellipse.cpp #444368:444369
@@ -112,28 +112,5 @@
 }
 
 
-QRegion KstViewEllipse::clipRegion() {
-  QRegion objRegion = KstViewObject::clipRegion();
-  if (isSelected()) {
-    // include the hotpoints on each corner
-    int dx = KST_RESIZE_BORDER_W/2;
-    int width = 2*dx + 1;
-    objRegion += QRegion(geometry().topLeft().x() - dx, 
-                         geometry().topLeft().y() - dx, 
-                         width, width);
-    objRegion += QRegion(geometry().topRight().x() - dx, 
-                         geometry().topRight().y() - dx, 
-                         width, width);
-    objRegion += QRegion(geometry().bottomRight().x() - dx, 
-                         geometry().bottomRight().y() - dx, 
-                         width, width);
-    objRegion += QRegion(geometry().bottomLeft().x() - dx, 
-                         geometry().bottomLeft().y() - dx, 
-                         width, width);
-  }  
-  return objRegion;
-}
-
-
 #include "kstviewellipse.moc"
 // vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/kst/kstviewellipse.h #444368:444369
@@ -41,9 +41,6 @@
     // can't have Q_PROPERTY in KstViewObject?
     virtual void setForegroundColor(const QColor& color);
     virtual QColor foregroundColor() const;
-    
-    // need to include hotpoints outside of ellipse
-    virtual QRegion clipRegion();
 
   public slots:
     virtual void paint(KstPaintType type, QPainter& p);
--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #444368:444369
@@ -1440,7 +1440,7 @@
       _clipMask = QRegion(_geom);
     }
   }
-
+  
   return _clipMask;
 }
 


More information about the Kst mailing list