Use a QgsScrollArea
when adding or inserting pages to QgsOptionsDialogBase
#55978
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Most pages in
QgsOptions
encapsulate their contents within a hard codedQgsScrollArea
to allow for scrollbars when shrinking.However, many pages in options and other subclasses use the
QgsOptionsDialogBase::insertPage
orQgsOptionsDialogBase::addPage
and force a minimum height to the parent dialog which is often quite big. This can also happen by plugins that add a page to the project properties or options dialog.With this PR, all pages added with those methods are wrapped around a
QgsScrollArea
and now allQgsOptionsDialogBase
derived dialogs can be resized to fit in smaller screens.Properly fixes the already closed #32021