Commit 2b8a0993 authored by Laurent Montel's avatar Laurent Montel 😁

QApplication::globalStrut was removed in qt5.15 Make it compile without deprecated method

parent 72daf743
......@@ -49,7 +49,7 @@ QSize MultiLineEdit::sizeHint() const
opt.midLineWidth = 0;
opt.state |= QStyle::State_Sunken;
QSize s = style()->sizeFromContents(QStyle::CT_LineEdit, &opt, QSize(100, h).expandedTo(QApplication::globalStrut()), this);
QSize s = style()->sizeFromContents(QStyle::CT_LineEdit, &opt, QSize(100, h), this);
return s;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment