|
|
@ -68,12 +68,9 @@ void Widget::initUI()
|
|
|
|
void Widget::setSNLineEditFocus()
|
|
|
|
void Widget::setSNLineEditFocus()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 全选LineEdit并且焦点放在LineEdit上
|
|
|
|
// 全选LineEdit并且焦点放在LineEdit上
|
|
|
|
#ifdef TEST_MODE
|
|
|
|
|
|
|
|
QString tmpSn = ui->lineEdit_snId->text();
|
|
|
|
|
|
|
|
ui->lineEdit_snId->setText("1234567890123456");
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
ui->lineEdit_snId->clear();
|
|
|
|
ui->lineEdit_snId->clear();
|
|
|
|
ui->lineEdit_snId->setFocus();
|
|
|
|
ui->lineEdit_snId->setFocus();
|
|
|
|
|
|
|
|
this->activateWindow();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int Widget::checkSNId(const QString &snId)
|
|
|
|
int Widget::checkSNId(const QString &snId)
|
|
|
|