From e79b6e2fcace94df3eb9348b2f6a52ad8203220b Mon Sep 17 00:00:00 2001 From: garak Date: Tue, 21 Feb 2023 11:03:33 -0500 Subject: [PATCH] add placeholder text for mapgroup label --- src/ui/maplistmodels.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/maplistmodels.cpp b/src/ui/maplistmodels.cpp index b4f6e9dc..e3dfba14 100644 --- a/src/ui/maplistmodels.cpp +++ b/src/ui/maplistmodels.cpp @@ -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);