Added new error type
This commit is contained in:
parent
deceb81c8b
commit
ce33d5a804
@ -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;
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -27,7 +27,8 @@ namespace RepRaptor
|
||||
enum ErrorType
|
||||
{
|
||||
SerialPortError,
|
||||
OpenFileError
|
||||
OpenFileError,
|
||||
HardwareFailure
|
||||
};
|
||||
|
||||
typedef struct
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user