MCPcopy Create free account
hub / github.com/KDE/okular / sizeHint

Method sizeHint

shell/shell.cpp:826–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826QSize Shell::sizeHint() const
827{
828 const QSize baseSize = QApplication::primaryScreen()->availableSize() * 0.6;
829 // Set an arbitrary yet sensible sane minimum size for very small screens;
830 // for example we don't want people using 1366x768 screens to get a tiny
831 // default window size of 820 x 460 which will elide most of the toolbar buttons.
832 return baseSize.expandedTo(QSize(1000, 700));
833}
834
835bool Shell::queryClose()
836{

Callers 1

Calls 1

QSizeClass · 0.50

Tested by

no test coverage detected