Рефакт Месссенджера закончил :)

This commit is contained in:
2025-09-11 16:37:49 +03:00
parent f53256f5b1
commit d6795e4723
6 changed files with 68 additions and 63 deletions

View File

@@ -98,7 +98,7 @@ void MsgWidget::on_editText_textChanged()
QRect textRect1str = metricsFont.boundingRect(QRect(0, 0, widthEdit, 1000), 0, "string");
int ost = textRect.width() % widthEdit;
int cnt = textRect.width() / widthEdit;
if(ost > 0)
//if(ost > 0)
cnt += 1;
this->setFixedHeight(textRect1str.height() * cnt + (ost? textRect1str.height() : 0) + X + 20 + 30);