Commit 4b087384 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle Committed by Vincent Pinon
Browse files

Fix compilation with Qt < 5.14

parent 460910bc
Pipeline #189454 passed with stage
in 11 minutes and 1 second
......@@ -336,7 +336,11 @@ void RenderWidget::slotShareActionFinished(const QJsonObject &output, int error,
QSize RenderWidget::sizeHint() const
{
// Make sure the widget has minimum size on opening
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
return {200, 200};
#else
return {200, qMax(200, screen()->availableGeometry().height())};
#endif
}
RenderWidget::~RenderWidget()
......
Supports Markdown
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