[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Mon Oct 4 22:57:03 CEST 2010


SVN commit 1182536 by kuemmel:

be sure we use setParentViewItem only

 M  +1 -1      viewitem.cpp  
 M  +1 -2      viewitem.h  


--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1182535:1182536
@@ -434,7 +434,7 @@
 
 
 void ViewItem::setParentViewItem(ViewItem* parent) {
-  setParentItem(parent);
+  QGraphicsItem::setParentItem(parent);
   updateRelativeSize();
 }
 
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.h #1182535:1182536
@@ -333,8 +333,7 @@
     QObject* parent() const;
     void setParent(QObject*);
 
-    // use parentViewItem() / setParentViewItem(ViewItem*)
-    QGraphicsItem* parentItem() const;
+    // use setParentViewItem(ViewItem*)
     void setParentItem(QGraphicsItem*);
 
     void startDragging(QWidget *widget, const QPointF& hotspot);


More information about the Kst mailing list