1
0
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:
PafXUS 2016-06-08 20:05:50 +03:00
parent f997d51b66
commit 93c6aa8ac0
No known key found for this signature in database
GPG Key ID: EE6F45227424D1B7

View File

@ -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");