From 0001ed9fb8da97db0caffb18c856815b9c5dd66d Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Wed, 22 Feb 2006 10:20:09 +0000 Subject: [PATCH] Changed progressbar->hide into close to avoid 100% cpu use. --- src/meshlab/mainwindow_Init.cpp | 11 ++++------- src/meshlab/mainwindow_RunTime.cpp | 31 +++++++----------------------- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/src/meshlab/mainwindow_Init.cpp b/src/meshlab/mainwindow_Init.cpp index 80bb3ee85..84ebc1dbb 100644 --- a/src/meshlab/mainwindow_Init.cpp +++ b/src/meshlab/mainwindow_Init.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.48 2006/02/22 10:20:09 cignoni +Changed progressbar->hide into close to avoid 100% cpu use. + Revision 1.47 2006/02/17 11:17:23 glvertex - Moved closeAction in FileMenu - Minor changes @@ -37,12 +40,6 @@ Revision 1.45 2006/02/01 12:44:42 glvertex Revision 1.44 2006/01/31 15:25:13 davide_portelli Added short key lastFilter - -Revision 1.43 2006/01/19 23:11:39 glvertex -No significant changes - -Revision 1.42 2006/01/19 15:58:59 fmazzant -moved savemaskexporter to mainwindows ****************************************************************************/ @@ -84,7 +81,7 @@ MainWindow::MainWindow() qb->setMinimum(0); qb->setAutoClose(false); qb->setMinimumDuration(0); - qb->hide(); + qb->close(); } void MainWindow::createActions() diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index 89da0636d..e1a05912d 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.90 2006/02/22 10:20:09 cignoni +Changed progressbar->hide into close to avoid 100% cpu use. + Revision 1.89 2006/02/21 17:25:57 ggangemi RenderMode is now passed to MeshRenderInterface::Init() @@ -36,27 +39,6 @@ Solved some minimizing/restore bugs Revision 1.86 2006/02/13 16:18:04 cignoni Minor edits. - -Revision 1.85 2006/02/09 21:39:56 buzzelli -making ProgressDialog interruptable - -Revision 1.84 2006/02/06 23:37:30 glvertex -Showing about dialog with fixed size - -Revision 1.83 2006/02/01 17:48:12 buzzelli -resolved a platform dependent issue about material and texture files locations - -Revision 1.82 2006/02/01 15:49:46 buzzelli -solved a bug which appeared when a not supported file was loaded via command line option - -Revision 1.81 2006/02/01 12:44:42 glvertex -- Disabled EDIT menu when no editing tools loaded -- Solved openig bug when running by command line - -Revision 1.80 2006/01/31 09:34:29 fmazzant -bug-fix on savemaskexporter, when press cancel returns -1. - - ****************************************************************************/ @@ -237,7 +219,7 @@ void MainWindow::applyFilter() lastFilterAct->setText(QString("Apply filter ") + action->text()); lastFilterAct->setEnabled(true); } - qb->hide(); + qb->close(); } void MainWindow::applyEditMode() @@ -467,7 +449,8 @@ void MainWindow::open(QString fileName) vcg::tri::UpdateNormals::PerVertexNormalizedPerFace(mm->cm); } - qb->hide(); + //qb->hide(); + qb->close(); } void MainWindow::openRecentFile() @@ -535,7 +518,7 @@ bool MainWindow::saveAs() return false; qb->show(); ret = pCurrentIOPlugin->save(extension, fileName, *this->GLA()->mm ,mask,QCallBack,this); - qb->hide(); + qb->close(); } return ret; }