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);