mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML preferences: use Layout.preferredHeight within GridLayout
It's not recommended to set the height explicitly of an item in a layout. Use Layout.preferredHeight instead Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
471270437b
commit
85c57c005f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ GridLayout {
|
|||
|
||||
Item { width: MobileComponents.Units.gridUnit; height: width }
|
||||
Item {
|
||||
height: saveButton.height
|
||||
Layout.preferredHeight: saveButton.height
|
||||
Layout.preferredWidth: saveButton.width
|
||||
SubsurfaceButton {
|
||||
id: saveButton
|
||||
|
|
Loading…
Add table
Reference in a new issue