add placeholder text for mapgroup label

This commit is contained in:
garak 2023-02-21 11:03:33 -05:00
parent ac83e0fbe3
commit e79b6e2fca

View file

@ -20,6 +20,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_]+");
editor->setPlaceholderText("gMapGroup_");
QRegularExpressionValidator *validator = new QRegularExpressionValidator(expression, parent);
editor->setValidator(validator);
editor->setFrame(false);