Skip to content

Commit

Permalink
Qt: add validator to patch creator offset lineedit
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Jul 9, 2023
1 parent e2c2ef9 commit e97a3b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpcs3/rpcs3qt/patch_creator_dialog.cpp
Expand Up @@ -35,6 +35,7 @@ patch_creator_dialog::patch_creator_dialog(QWidget* parent)
ui->setupUi(this);
ui->patchEdit->setFont(mMonoFont);
ui->addPatchOffsetEdit->setFont(mMonoFont);
ui->addPatchOffsetEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^(0[xX])?[a-fA-F0-9]{0,8}$")));
ui->addPatchValueEdit->setFont(mMonoFont);
ui->instructionTable->setFont(mMonoFont);
ui->instructionTable->setItemDelegate(new table_item_delegate(this, false));
Expand Down

0 comments on commit e97a3b7

Please sign in to comment.