drop gMapGroup_ prefix necessity for renaming groups
This commit is contained in:
parent
263e45fe20
commit
a00558a0d1
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ void MapTree::removeSelected() {
|
|||
|
||||
QWidget *GroupNameDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const {
|
||||
QLineEdit *editor = new QLineEdit(parent);
|
||||
static const QRegularExpression expression("gMapGroup_[A-Za-z0-9_]+");
|
||||
static const QRegularExpression expression("[A-Za-z0-9_]+");
|
||||
editor->setPlaceholderText("gMapGroup_");
|
||||
QRegularExpressionValidator *validator = new QRegularExpressionValidator(expression, parent);
|
||||
editor->setValidator(validator);
|
||||
|
|
Loading…
Reference in a new issue