diff options
author | Marc Mutz <[email protected]> | 2024-12-31 10:03:41 +0100 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-01-02 07:50:50 +0100 |
commit | 9c099ef942216d01261c26b60e3727a2a467f12a (patch) | |
tree | 434e53cb69fcfdf71fdd9f2801aa2f84796e4637 | |
parent | 3419c299369ac1da94ba5710aaf5f5f65c38c33c (diff) |
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.9 6.8
Change-Id: I528f0ce9d8cb7a997fbfabcdca887c059f571b38
Reviewed-by: Volker Hilsheimer <[email protected]>
-rw-r--r-- | examples/sql/sqlbrowser/qsqlconnectiondialog.ui | 8 |
1 files changed, 1 insertions, 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 @@ <property name="title" > <string>Connection settings</string> </property> - <layout class="QGridLayout" > - <property name="margin" > - <number>8</number> - </property> - <property name="spacing" > - <number>6</number> - </property> + <layout class="QFormLayout" name="formLayout"> <item row="0" column="1" > <widget class="QComboBox" name="comboDriver" /> </item> |