Мессенджер рефакт еще

This commit is contained in:
2025-09-11 18:09:46 +03:00
parent d6795e4723
commit f49da62379
2 changed files with 5 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ void MsgWidget::on_editText_textChanged()
if(textRect.width() > widthEdit)
{//Не помещается в одну строку
textRect = metricsFont.boundingRect(QRect(0, 0, widthEdit, 1000), 0, text);
textRect = metricsFont.boundingRect(QRect(0, 0, widthEdit, 1000), Qt::TextWordWrap, text);
if(textRect.width() > widthEdit)
{