diff --git a/InstructorsAndTrainees/messanger/msgwidget.cpp b/InstructorsAndTrainees/messanger/msgwidget.cpp index 2e953bd..d01c711 100644 --- a/InstructorsAndTrainees/messanger/msgwidget.cpp +++ b/InstructorsAndTrainees/messanger/msgwidget.cpp @@ -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) { diff --git a/InstructorsAndTrainees/messanger/msgwidget.ui b/InstructorsAndTrainees/messanger/msgwidget.ui index 417131a..bacab8c 100644 --- a/InstructorsAndTrainees/messanger/msgwidget.ui +++ b/InstructorsAndTrainees/messanger/msgwidget.ui @@ -7,7 +7,7 @@ 0 0 400 - 233 + 236 @@ -89,6 +89,9 @@ QAbstractScrollArea::AdjustIgnored + + true +