limitable_input_dialog: Implement character limiter

When using GetText() you can now choose what set of characters the user can't enter.
This commit is contained in:
Kewlan
2021-06-04 12:24:18 +02:00
parent 31dac5d95f
commit 058196a089
3 changed files with 48 additions and 5 deletions

View File

@ -1395,7 +1395,8 @@ void ConfigureInputPlayer::keyPressEvent(QKeyEvent* event) {
void ConfigureInputPlayer::CreateProfile() {
const auto profile_name =
LimitableInputDialog::GetText(this, tr("New Profile"), tr("Enter a profile name:"), 1, 20);
LimitableInputDialog::GetText(this, tr("New Profile"), tr("Enter a profile name:"), 1, 20,
LimitableInputDialog::InputLimiter::Filesystem);
if (profile_name.isEmpty()) {
return;