drop gMapGroup_ prefix necessity for renaming groups

This commit is contained in:
garak 2023-10-27 14:19:29 -04:00
parent 263e45fe20
commit a00558a0d1

View file

@ -19,7 +19,7 @@ void MapTree::removeSelected() {
QWidget *GroupNameDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const { QWidget *GroupNameDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const {
QLineEdit *editor = new QLineEdit(parent); 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_"); editor->setPlaceholderText("gMapGroup_");
QRegularExpressionValidator *validator = new QRegularExpressionValidator(expression, parent); QRegularExpressionValidator *validator = new QRegularExpressionValidator(expression, parent);
editor->setValidator(validator); editor->setValidator(validator);