Skip to content

Commit

Permalink
Merge pull request #214 from epasveer/198-add-a-way-to-select-which-r…
Browse files Browse the repository at this point in the history
…egisters-to-show

Allow Capital letters and spaces in Register profile names.
  • Loading branch information
epasveer authored Dec 29, 2023
2 parents e239570 + 6dd721b commit add9552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SeerRegisterProfileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ SeerRegisterProfileDialog::SeerRegisterProfileDialog (QWidget* parent) : QDialog
registersTreeWidget->resizeColumnToContents(2); // checkbox
registersTreeWidget->clear();

QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[a-z0-9\\.\\-\\_]+"));
// Letters, numbers, space, period, hypen, underscore.
QRegularExpressionValidator* validator = new QRegularExpressionValidator(QRegularExpression("[a-zA-Z0-9\\ \\.\\-\\_]+"));

profileNameLineEdit->setValidator(validator);

Expand Down

0 comments on commit add9552

Please sign in to comment.