|
|
@ -71,7 +71,7 @@ FriendWidget::FriendWidget(std::shared_ptr<FriendChatroom> chatroom, bool compac |
|
|
|
connect(nameLabel, &CroppingLabel::editFinished, frnd, &Friend::setAlias); |
|
|
|
connect(nameLabel, &CroppingLabel::editFinished, frnd, &Friend::setAlias); |
|
|
|
// update on changes of the displayed name
|
|
|
|
// update on changes of the displayed name
|
|
|
|
connect(frnd, &Friend::displayedNameChanged, nameLabel, &CroppingLabel::setText); |
|
|
|
connect(frnd, &Friend::displayedNameChanged, nameLabel, &CroppingLabel::setText); |
|
|
|
connect(frnd, &Friend::displayedNameChanged, [this](const QString /* &newName */){emit friendWidgetRenamed(this);}); |
|
|
|
connect(frnd, &Friend::displayedNameChanged, this, [this](const QString /* &newName */){emit friendWidgetRenamed(this);}); |
|
|
|
connect(chatroom.get(), &FriendChatroom::activeChanged, this, &FriendWidget::setActive); |
|
|
|
connect(chatroom.get(), &FriendChatroom::activeChanged, this, &FriendWidget::setActive); |
|
|
|
statusMessageLabel->setTextFormat(Qt::PlainText); |
|
|
|
statusMessageLabel->setTextFormat(Qt::PlainText); |
|
|
|
} |
|
|
|
} |
|
|
|