diff --git a/src/widget/form/addfriendform.cpp b/src/widget/form/addfriendform.cpp index 4f6f6467c..0d8e8c77a 100644 --- a/src/widget/form/addfriendform.cpp +++ b/src/widget/form/addfriendform.cpp @@ -36,6 +36,7 @@ #include "src/widget/gui.h" #include "src/widget/translator.h" #include "src/widget/contentlayout.h" +#include "src/widget/tool/croppinglabel.h" #include "src/net/toxme.h" #include #include @@ -277,7 +278,7 @@ void AddFriendForm::addFriendRequestWidget(const QString &friendAddress, const Q horLayout->setMargin(0); friendLayout->addLayout(horLayout); - QLabel* friendLabel = new QLabel(friendWidget); + CroppingLabel* friendLabel = new CroppingLabel(friendWidget); friendLabel->setText("" + friendAddress + ""); horLayout->addWidget(friendLabel);