API achange (0.11.8): computeNormals returns only pcl::Normal cloud, not pcl::PointNormal or pcl::PointXYZRGBNormal types. MainWindow: Normals are not kept in cache to save RAM. ProgressDialog: check if auto-close is still checked when close() slot is called.

This commit is contained in:
matlabbe
2016-06-12 13:51:49 -04:00
parent 9f296c67b2
commit cb7c76889d
19 changed files with 342 additions and 287 deletions

View File

@@ -109,7 +109,7 @@ void ProgressDialog::setValue(int value)
}
else if(_closeWhenDoneCheckBox->isChecked())
{
QTimer::singleShot(_delayedClosingTime*1000, this, SLOT(close()));
QTimer::singleShot(_delayedClosingTime*1000, this, SLOT(closeDialog()));
}
}
}
@@ -146,6 +146,14 @@ void ProgressDialog::resetProgress()
_closeButton->setEnabled(false);
}
void ProgressDialog::closeDialog()
{
if(_closeWhenDoneCheckBox->isChecked())
{
close();
}
}
void ProgressDialog::closeEvent(QCloseEvent *event)
{
if(_progressBar->value() == _progressBar->maximum())