Skip to content

Commit

Permalink
add placeholder text for mapgroup label
Browse files Browse the repository at this point in the history
  • Loading branch information
garakmon committed Feb 22, 2023
1 parent ba212c8 commit f3e1a5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/maplistmodels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3e1a5d

Please sign in to comment.