From cfee7897416eea00670c5f6fde9c7a29f796fb6d Mon Sep 17 00:00:00 2001 From: lichongyuan Date: Thu, 19 Sep 2024 16:02:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=B3=A8KEY=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=EF=BC=8C=E4=B8=BB=E5=8A=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=84=A6=E7=82=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/widget.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/widget.cpp b/ui/widget.cpp index 4b28f0c..576ae84 100644 --- a/ui/widget.cpp +++ b/ui/widget.cpp @@ -68,12 +68,9 @@ void Widget::initUI() void Widget::setSNLineEditFocus() { // 全选LineEdit并且焦点放在LineEdit上 -#ifdef TEST_MODE - QString tmpSn = ui->lineEdit_snId->text(); - ui->lineEdit_snId->setText("1234567890123456"); -#endif ui->lineEdit_snId->clear(); ui->lineEdit_snId->setFocus(); + this->activateWindow(); } int Widget::checkSNId(const QString &snId)