Added set focus to description anytime a create dialong is opened
This commit is contained in:
parent
77b9aa7c36
commit
813a0c2070
1 changed files with 2 additions and 1 deletions
|
@ -133,6 +133,7 @@ DlgCreateGame::DlgCreateGame(TabRoom *_room, const QMap<int, QString> &_gameType
|
||||||
actReset();
|
actReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
descriptionEdit->setFocus();
|
||||||
clearButton = new QPushButton(tr("&Clear"));
|
clearButton = new QPushButton(tr("&Clear"));
|
||||||
buttonBox->addButton(QDialogButtonBox::Cancel);
|
buttonBox->addButton(QDialogButtonBox::Cancel);
|
||||||
buttonBox->addButton(clearButton, QDialogButtonBox::ActionRole);
|
buttonBox->addButton(clearButton, QDialogButtonBox::ActionRole);
|
||||||
|
@ -205,7 +206,7 @@ void DlgCreateGame::actReset()
|
||||||
gameTypeCheckBoxIterator.value()->setChecked(false);
|
gameTypeCheckBoxIterator.value()->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
descriptionEdit->setFocus();
|
descriptionEdit->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue