Commit 81316715 authored by Julius Künzel's avatar Julius Künzel
Browse files

[RenderWidget] Add scrollbar to improve experience on small screens

parent f7bc263e
Pipeline #177380 passed with stage
in 7 minutes and 52 seconds
......@@ -171,6 +171,7 @@ RenderWidget::RenderWidget(bool enableProxy, QWidget *parent)
}
});
m_view.optionsGroup->setVisible(m_view.options->isChecked());
m_view.optionsGroup->setMinimumWidth(m_view.optionsGroup->width() + m_view.optionsGroup->verticalScrollBar()->width());
connect(m_view.options, &QAbstractButton::toggled, m_view.optionsGroup, &QWidget::setVisible);
connect(m_view.out_file, &KUrlRequester::textChanged, this, static_cast<void (RenderWidget::*)()>(&RenderWidget::slotUpdateButtons));
......@@ -335,7 +336,7 @@ void RenderWidget::slotShareActionFinished(const QJsonObject &output, int error,
QSize RenderWidget::sizeHint() const
{
// Make sure the widget has minimum size on opening
return {200, 200};
return {200, qMax(200, screen()->availableGeometry().height())};
}
RenderWidget::~RenderWidget()
......
This diff is collapsed.
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