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

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) 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) if(textRect.width() > widthEdit)
{ {

View File

@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>400</width>
<height>233</height> <height>236</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@@ -89,6 +89,9 @@
<property name="sizeAdjustPolicy"> <property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum> <enum>QAbstractScrollArea::AdjustIgnored</enum>
</property> </property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item> <item>