QmlDesigner.NodeInstances: Remove unused code

Change-Id: Ibf585ef6f821f73be16888fea550bfe0e0b1bcd6
Reviewed-on: http://codereview.qt.nokia.com/3969
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Marco Bubke
2011-08-29 20:50:57 +02:00
parent ebf7c68705
commit b8592f1b98
2 changed files with 0 additions and 10 deletions
@@ -91,8 +91,6 @@ QDeclarativeEngine *Qt5NodeInstanceServer::engine() const
void Qt5NodeInstanceServer::resizeCanvasSizeToRootItemSize()
{
if (sgView())
sgView()->resize(rootNodeInstance().size().toSize());
}
void Qt5NodeInstanceServer::resetAllItems()
@@ -78,8 +78,6 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
if (!inFunction) {
inFunction = true;
bool adjustSceneRect = false;
if (sgView()) {
foreach (QSGItem *item, allItems()) {
if (item && hasInstanceForObject(item)) {
@@ -97,12 +95,6 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
}
resetAllItems();
// if (adjustSceneRect) {
// QRectF boundingRect = rootNodeInstance().boundingRect();
// if (boundingRect.isValid()) {
// declarativeView()->setSceneRect(boundingRect);
// }
// }
slowDownRenderTimer();
nodeInstanceClient()->flush();