In some languages the sidebar container header is wider than the
minimum container width and therefore cut off. By using a squeezable
label and setting a proper default width, the header is displayed fully
when Okular is started for the first time, while still being able to
reduce the size via the splitter.
By removing the explicitly set minimum width, the QVBoxLayout is
now allowed to actually do its job of automatically calculating the
proper minimum width based on its contained widgets.
In times of ultrawide 21:9 displays, setting the maximum width to 600px
seems arbitrary and overly restrictive, so it is removed.
Both width restrictions were originally chosen in 078b81b7 with no
explanation given for the values selected, which later were changed to
different values multiple times. Today, they simply do not seem
Note: The first-start size for some languages is now wider than before,
still acceptable though (see screenshots of Greek, where the translated
string of "Thumbnails" is one of the longest among all languages).
Most languages are not affected at all and users could easily move the
splitter further to the left.
Note: KF5_REQUIRED_VERSION is not bumped for now to require the fix to
KSqueezedTextLabel (see depending review), as this minor visual tweak
should not prevent building of Okular on older distros. For those, at
least cutoff will be reduced to 9px, distros with updated KF5 would get
the full cutoff reduction to 0px.
Depends on D7164