mirror of
https://github.com/simple64/simple64.git
synced 2026-11-12 03:28:42 +01:00
update input qt
This commit is contained in:
1 parent
f3bc066716
commit
ac29429783
1 file changed
+4
@@ -352,7 +352,11 @@ ProfileEditor::ProfileEditor(QString profile, QSettings *settings, QWidget *pare
|
||||
|
||||
activeButton = nullptr;
|
||||
QString section = profile;
|
||||
QRegExp rx("[a-zA-Z0-9]+");
|
||||
QValidator *validator = new QRegExpValidator(rx, this);
|
||||
QLineEdit *profileName = new QLineEdit(this);
|
||||
profileName->setValidator(validator);
|
||||
profileName->setMaxLength(30);
|
||||
if (profile == "Auto-Keyboard" || profile == "Auto-Gamepad") {
|
||||
profileName->setDisabled(0);
|
||||
profile = "";
|
||||
|
||||
Reference in new issue
Block a user