Added new error type

This commit is contained in:
NeoTheFox 2015-03-28 21:34:49 +03:00
parent deceb81c8b
commit ce33d5a804
3 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,9 @@ ErrorWindow::ErrorWindow(QWidget *parent, QString errorText, int errType):
case OpenFileError: case OpenFileError:
ui->label->setText(tr("File open error:")); ui->label->setText(tr("File open error:"));
break; break;
case HardwareFailure:
ui->label->setText(tr("Hardware failure:"));
break;
default: default:
ui->label->setText(tr("Unknown error type:")); ui->label->setText(tr("Unknown error type:"));
break; break;

View File

@ -869,7 +869,7 @@ void MainWindow::EEPROMSettingReceived(QString esetting)
void MainWindow::receivedError() void MainWindow::receivedError()
{ {
//This should be raised if "!!" received //This should be raised if "!!" received
ErrorWindow errorwindow(this, tr("Hardware failure")); ErrorWindow errorwindow(this, tr("Hardware failure"), 3);
errorwindow.exec(); errorwindow.exec();
} }

View File

@ -27,7 +27,8 @@ namespace RepRaptor
enum ErrorType enum ErrorType
{ {
SerialPortError, SerialPortError,
OpenFileError OpenFileError,
HardwareFailure
}; };
typedef struct typedef struct