From 02f05bdb5fa7e43d36a50d90a290dd069c2dea62 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 31 Dec 2024 10:03:41 +0100 Subject: [PATCH] sqlbrowser example: use idiomatic Qt [3/3]: use form-layout The old code used a grid layout inside the QGroupBox, but the design with labels in the first and edit-widgets in the second column lends itself to a QFormLayout, which adapts the alignment of the widgets to the platform style, so use that. Amends 2690822428deec4f0c08f4d118d69a7c6036369e, which, however, inherited all of the above from even older code. Pick-to: 6.8 Change-Id: I528f0ce9d8cb7a997fbfabcdca887c059f571b38 Reviewed-by: Volker Hilsheimer (cherry picked from commit 9c099ef942216d01261c26b60e3727a2a467f12a) Reviewed-by: Qt Cherry-pick Bot --- examples/sql/sqlbrowser/qsqlconnectiondialog.ui | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/sql/sqlbrowser/qsqlconnectiondialog.ui b/examples/sql/sqlbrowser/qsqlconnectiondialog.ui index ae562316f3c..103138b0674 100644 --- a/examples/sql/sqlbrowser/qsqlconnectiondialog.ui +++ b/examples/sql/sqlbrowser/qsqlconnectiondialog.ui @@ -27,13 +27,7 @@ Connection settings - - - 8 - - - 6 - +