add placeholder text for mapgroup label
This commit is contained in:
parent
ac83e0fbe3
commit
e79b6e2fca
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,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("gMapGroup_[A-Za-z0-9_]+");
|
||||||
|
editor->setPlaceholderText("gMapGroup_");
|
||||||
QRegularExpressionValidator *validator = new QRegularExpressionValidator(expression, parent);
|
QRegularExpressionValidator *validator = new QRegularExpressionValidator(expression, parent);
|
||||||
editor->setValidator(validator);
|
editor->setValidator(validator);
|
||||||
editor->setFrame(false);
|
editor->setFrame(false);
|
||||||
|
|
Loading…
Reference in a new issue