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

Peter Kümmel syntheticpp at gmx.net
Mon Oct 4 21:45:06 CEST 2010


SVN commit 1182510 by kuemmel:

Fix crash: items have a new QGraphicsItem as parent not a new QObject (here a tab page)

CCBUG: 253165

 M  +2 -2      viewitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1182509:1182510
@@ -1452,7 +1452,7 @@
              << endl;
 #endif
 
-    setParentView(0);
+    setParentViewItem(0);
     setPos(mapToParent(mapFromScene(origin)) + pos() - mapToParent(QPointF(0,0)));
     updateRelativeSize();
 
@@ -1536,7 +1536,7 @@
              << endl;
 #endif
 
-    setParentView(0);
+    setParentViewItem(0);
     setPos(mapToParent(mapFromScene(origin)) + pos() - mapToParent(QPointF(0,0)));
     updateRelativeSize();
 


More information about the Kst mailing list