void InfoWidget::LabeledWidget::setLabelText(object_ptr<Ui::FlatLabel> &text, const TextWithEntities &textWithEntities, const QString ©Text) { text.destroy(); if (textWithEntities.text.isEmpty()) return; text.create(this, QString(), Ui::FlatLabel::InitType::Simple, _valueSt); text->show(); text->setMarkedText(textWithEntities); text->setContextCopyText(copyText); text->setSelectable(true); text->setDoubleClickSelectsParagraph(true); }
void InnerWidget::peerListSetDescription( object_ptr<Ui::FlatLabel> description) { description.destroy(); }