From c8374bfefb5c8cd52cc0848e7b7370f7f067044d Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 11 Jan 2017 10:19:37 +0100 Subject: [PATCH] Remove the function recomputeItems(). --- Polyhedron/demo/Polyhedron/MainWindow.cpp | 14 +++++--------- Polyhedron/demo/Polyhedron/MainWindow.h | 1 - 2 files changed, 5 insertions(+), 10 deletions(-) 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);