mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-20 08:37:36 -05:00
add placeholder text for mapgroup label
This commit is contained in:
parent
ac83e0fbe3
commit
e79b6e2fca
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user