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:
|
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;
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,8 @@ namespace RepRaptor
|
|||||||
enum ErrorType
|
enum ErrorType
|
||||||
{
|
{
|
||||||
SerialPortError,
|
SerialPortError,
|
||||||
OpenFileError
|
OpenFileError,
|
||||||
|
HardwareFailure
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user