Test show Err.

This commit is contained in:
Hiro Protagonist 2017-04-07 16:02:18 +12:00
parent a1d8c184b9
commit 29d47cc735

View file

@ -185,11 +185,11 @@ void MainWindow::setStatus( STATUS status ) {
} }
void MainWindow::showError( QString error ) { void MainWindow::showError( QString error ) {
QMessageBox errBox; QMessageBox * errBox = new QMessageBox;
errBox.setParent( this ); errBox->setParent( this );
errBox.critical( 0, "Error", "An Error has occured:\n" + error ); errBox->critical( 0, "Error", "An Error has occured:\n" + error );
errBox.setFixedSize( 500, 200 ); errBox->setFixedSize( 500, 200 );
errBox.exec(); errBox->open( errBox, &QMessageBox::deleteLater );
} }
void MainWindow::showError( FlyCapture2::Error error ) { void MainWindow::showError( FlyCapture2::Error error ) {