[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Apr 23 19:16:07 CEST 2004


CVS commit by arwalker: 

Moved contentsRect( ) to KstViewObject, as this will be needed for proper resizing later.


  M +1 -1      kstborderedviewobject.h   1.8
  M +3 -0      kstviewobject.cpp   1.31
  M +1 -0      kstviewobject.h   1.27


--- kdeextragear-2/kst/kst/kstborderedviewobject.h  #1.7:1.8
@@ -83,5 +83,5 @@ class KstBorderedViewObject : public Kst
 
     // See above for gross details
-    QRect contentsRect() const;
+    virtual QRect contentsRect() const;
 
   public slots:

--- kdeextragear-2/kst/kst/kstviewobject.cpp  #1.30:1.31
@@ -350,4 +350,7 @@ const QRect& KstViewObject::geometry() c
 }
 
+QRect KstViewObject::contentsRect() const {
+  return _geom;
+}
 
 bool KstViewObject::popupMenu(KPopupMenu *menu, const QPoint& pos, KstViewObjectPtr topParent) {

--- kdeextragear-2/kst/kst/kstviewobject.h  #1.26:1.27
@@ -67,4 +67,5 @@ class KstViewObject : public KstObject {
     virtual QPoint position() const;
     virtual const QRect& geometry() const;
+    virtual QRect contentsRect() const;
     virtual void move(const QPoint& to);
 





More information about the Kst mailing list