diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index 5b075a65047..efa8527acc7 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -873,7 +873,11 @@ void MainWindow::updateViewerBBox() if(offset != viewer->offset()) { viewer->setOffset(offset); - recomputeItems(); + for(int i=0; inumberOfEntries(); ++i) + { + scene->item(i)->invalidateOpenGLBuffers(); + scene->item(i)->itemChanged(); + } } @@ -1949,11 +1953,3 @@ void MainWindow::resetHeader() sceneView->header()->resizeSection(Scene::VisibleColumn, sceneView->header()->fontMetrics().width(QString("_View_"))); } -void MainWindow::recomputeItems() -{ - for(int i=0; inumberOfEntries(); ++i) - { - scene->item(i)->invalidateOpenGLBuffers(); - scene->item(i)->itemChanged(); - } -} diff --git a/Polyhedron/demo/Polyhedron/MainWindow.h b/Polyhedron/demo/Polyhedron/MainWindow.h index 61c8a8a35d0..38e33cf7e09 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.h +++ b/Polyhedron/demo/Polyhedron/MainWindow.h @@ -354,7 +354,6 @@ private: void updateMenus(); void load_plugin(QString names, bool blacklisted); void recurseExpand(QModelIndex index); - void recomputeItems(); QMap menu_map; QString get_item_stats(); QString strippedName(const QString &fullFileName);