diff --git a/app/HGProductionTool/dialog_userinput.cpp b/app/HGProductionTool/dialog_userinput.cpp index 9a54628..cd9a1ec 100644 --- a/app/HGProductionTool/dialog_userinput.cpp +++ b/app/HGProductionTool/dialog_userinput.cpp @@ -91,6 +91,12 @@ void Dialog_UserInput::setFwLanguageMode() } } +void Dialog_UserInput::setDefaultSkewValue() +{ + ui->lineEdit->setText(QString::number(3)); + ui->lineEdit->selectAll(); +} + void Dialog_UserInput::on_pbtn_yes_clicked() { if (ui->lineEdit->text().isEmpty() && (m_type == ui_helper::VAL_TYPE_INT || m_type == ui_helper::VAL_TYPE_FLOAT || m_type == ui_helper::VAL_TYPE_STRING)) diff --git a/app/HGProductionTool/dialog_userinput.h b/app/HGProductionTool/dialog_userinput.h index a084727..bec06a4 100644 --- a/app/HGProductionTool/dialog_userinput.h +++ b/app/HGProductionTool/dialog_userinput.h @@ -36,6 +36,7 @@ public: parameter *getParam(); void setDistortValue(double value); void setFwLanguageMode(); + void setDefaultSkewValue(); private slots: void on_pbtn_yes_clicked(); diff --git a/app/HGProductionTool/hgscanner.cpp b/app/HGProductionTool/hgscanner.cpp index 762195f..de1c6fc 100644 --- a/app/HGProductionTool/hgscanner.cpp +++ b/app/HGProductionTool/hgscanner.cpp @@ -40,6 +40,10 @@ parameter* hgscanner::get_user_input(data_from from, value_type type, const wcha { dlg.setFwLanguageMode(); } + if (wcscmp(L"SKEW_DETECTION", title) == 0) + { + dlg.setDefaultSkewValue(); + } if (dlg.exec()) {