[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Jan 11 21:30:33 CET 2006
SVN commit 497058 by staikos:
add a new property that can be overridden to get relative positioning working
properly. needs to be implemented in kst2dplot
M +10 -0 kstviewobject.cpp
M +7 -0 kstviewobject.h
--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #497057:497058
@@ -927,6 +927,16 @@
}
+QRect KstViewObject::dataRect() const {
+ return contentsRect();
+}
+
+
+void KstViewObject::setDataRect(const QRect& rect) {
+ setContentsRect(rect);
+}
+
+
QString KstViewObject::menuTitle() const {
return tagName();
}
--- trunk/extragear/graphics/kst/kst/kstviewobject.h #497057:497058
@@ -92,8 +92,15 @@
virtual const QRect& geometry() const;
const KstAspectRatio& aspectRatio() const;
virtual QRect surroundingGeometry() const;
+ // This is, by definition, the contents not including decoration. (borders
+ // etc)
virtual QRect contentsRect() const;
virtual void setContentsRect(const QRect& rect);
+ // This is, by definition, the meaningful internal contents. It is often
+ // the contentsRect, but not always. It is used to position things like
+ // arrows relative to the meaningful contents of the object.
+ virtual QRect dataRect() const;
+ virtual void setDataRect(const QRect& rect);
virtual void move(const QPoint& to);
// Draw a focus highlight
More information about the Kst
mailing list