From 933091566c6fcf129eab7ca1d0b0cbfeadeec299 Mon Sep 17 00:00:00 2001 From: duanshengchao <519970194@qq.com> Date: Fri, 16 May 2025 17:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B1=9E=E6=80=A7=E4=B8=AD?= =?UTF-8?q?=E2=80=98=E7=B1=BB=E5=9E=8B=E2=80=99=E5=AD=97=E6=AE=B5=E5=AF=B9?= =?UTF-8?q?=E4=BA=8E=E5=AD=97=E7=AC=A6=E2=80=98$=E2=80=99=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/attributeTableDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/attributeTableDelegate.cpp b/source/attributeTableDelegate.cpp index 7a4e168..b4a898b 100644 --- a/source/attributeTableDelegate.cpp +++ b/source/attributeTableDelegate.cpp @@ -194,7 +194,7 @@ QWidget* AttributeTableDelegate::createEditor(QWidget *parent, const QStyleOptio { TextEditWidget* textEditor = new TextEditWidget(parent); textEditor->setPrompt(QString::fromWCharArray(L"类型必须为英文")); - textEditor->setRegularExpression("[A-Za-z0-9_]"); + textEditor->setRegularExpression("[A-Za-z0-9_$]"); connect(textEditor, &TextEditWidget::confirm, this, [=]{ /*QString strText = textEditor->editText(); int id = SqlQueryExecutor::instance().getAttributeID(m_connection, strText);