Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(profile): set maxLength on userName QLineEdit
Browse files Browse the repository at this point in the history
Set maxLength of userName QLineEdit to TOX_MAX_NAME_LENGTH
Fixes #4335
  • Loading branch information
jeromecc committed May 9, 2017
1 parent a913f15 commit 71a838b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widget/form/profileform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ ProfileForm::ProfileForm(QWidget* parent)
bodyUI->setupUi(this);
core = Core::getInstance();

bodyUI->userNameLabel->setToolTip(tr("Tox user names cannot exceed %1 characters.")
.arg(TOX_MAX_NAME_LENGTH));
bodyUI->userName->setMaxLength(TOX_MAX_NAME_LENGTH);

// tox
toxId = new ClickableTE();
toxId->setReadOnly(true);
Expand Down

0 comments on commit 71a838b

Please sign in to comment.