Commit 97264b53 authored by Nate Graham's avatar Nate Graham Committed by Albert Astals Cid
Browse files

Improve default window size

Okular's current default window size is very small, due to a bug which
will be fixed by
frameworks/kxmlgui!53. Once that
is fixed, its default window size will become huge due to the current
sizeHint value, which basically says "take up 75% of the screen space".
This may be somewhat excessive.

This commit reduces the sizeHint to a saner default size while still
being big enough to show all toolbar buttons.
parent c4e33d0e
Pipeline #59998 passed with stage
in 8 minutes and 32 seconds
......@@ -599,7 +599,11 @@ void Shell::slotShowMenubar()
QSize Shell::sizeHint() const
{
return QApplication::primaryScreen()->availableSize() * 0.75;
const QSize baseSize = QApplication::primaryScreen()->availableSize() * 0.6;
// Set an arbitrary yet sensible sane minimum size for very small screens;
// for example we don't want people using 1366x768 screens to get a tiny
// default window size of 820 x 460 which will elide most of the toolbar buttons.
return baseSize.expandedTo(QSize(1000, 700));
}
bool Shell::queryClose()
......
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