1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

add friend on enter key pressed #1404

This commit is contained in:
isn0gud 2015-03-17 00:28:34 +01:00 committed by Dubslow
parent 99e8d71fca
commit de423571eb
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA

View File

@ -50,6 +50,7 @@ AddFriendForm::AddFriendForm()
head->setLayout(&headLayout);
headLayout.addWidget(&headLabel);
connect(&toxId,&QLineEdit::returnPressed, this, &AddFriendForm::onSendTriggered);
connect(&sendButton, SIGNAL(clicked()), this, SLOT(onSendTriggered()));
connect(Nexus::getCore(), &Core::usernameSet, this, &AddFriendForm::onUsernameSet);
}