frontend: Focus text entry in NameDialog
This commit is contained in:
parent
c942731aaf
commit
547e4acdd3
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ NameDialog::NameDialog(QWidget *parent) : QDialog(parent)
|
|||
QDialogButtonBox *buttonbox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
layout->addWidget(buttonbox);
|
||||
buttonbox->setCenterButtons(true);
|
||||
|
||||
userText->setFocus();
|
||||
|
||||
connect(buttonbox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(buttonbox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue