[Kst] branches/work/kst/portto4/kst/src/libkstapp
Adam Treat
treat at kde.org
Wed Oct 10 17:45:42 CEST 2007
SVN commit 723745 by treat:
* Delay this so that the curves can update first.
M +3 -1 layoutboxitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/layoutboxitem.cpp #723744:723745
@@ -16,6 +16,7 @@
#include <QDebug>
#include <QMenu>
+#include <QTimer>
#include <QGraphicsScene>
#include <QGraphicsSceneContextMenuEvent>
@@ -45,7 +46,8 @@
layout()->addViewItem(item, layout()->rowCount(), 0, 1, layout()->columnCount());
setPos(parentView()->sceneRect().topLeft());
setViewRect(parentView()->sceneRect());
- layout()->update();
+ //singleshot to give plots a chance to set a projection rect
+ QTimer::singleShot(0, layout(), SLOT(update()));
}
More information about the Kst
mailing list