mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(profileform): set parent for validator
This commit is contained in:
parent
f997d51b66
commit
93c6aa8ac0
|
@ -93,7 +93,7 @@ ProfileForm::ProfileForm(QWidget *parent) :
|
|||
bodyUI->qrLabel->setWordWrap(true);
|
||||
|
||||
QRegExp re("[^@ ]+");
|
||||
QRegExpValidator* validator = new QRegExpValidator(re);
|
||||
QRegExpValidator* validator = new QRegExpValidator(re, this);
|
||||
bodyUI->toxmeUsername->setValidator(validator);
|
||||
|
||||
profilePicture = new MaskablePixmapWidget(this, QSize(64, 64), ":/img/avatar_mask.svg");
|
||||
|
|
Loading…
Reference in New Issue
Block a user