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:
ui->label->setText(tr("File open error:"));
break;
case HardwareFailure:
ui->label->setText(tr("Hardware failure:"));
break;
default:
ui->label->setText(tr("Unknown error type:"));
break;

View File

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

View File

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