From c8c5afb1e7682e359d72ec75fdaf5778d403458f Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Thu, 11 Jul 2024 10:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=B7=A5=E5=85=B7=E6=AD=AA?= =?UTF-8?q?=E6=96=9C=E6=A3=80=E6=B5=8B=E6=97=B6=E6=97=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/HGProductionTool/dialog_userinput.cpp | 6 ++++++ app/HGProductionTool/dialog_userinput.h | 1 + app/HGProductionTool/hgscanner.cpp | 4 ++++ 3 files changed, 11 insertions(+) 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()) {