qt6-bb10/examples/sql/sqlbrowser
Marc Mutz 2f6684ee33 sqlbrowser example: use idiomatic Qt [1/3]: disabling group-box
The old code connected to the wrong signal and therefore had to write
a custom slot to perform the disabling of the group-box.

The new code simply connects the QCheckBox::toggled(bool) signal to
the directly-compatible QWidget::setDisabled(bool) slot, removing the
need for a custom slot.

Also move the connection into the .ui file, so it works already when
checking the form in QtDesigner.

Amends 2690822428, which, however, only
inherited the issues from older code.

Change-Id: Ia834f92de270bb7b18981273188f6e5b6cd457a2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 53826d1cde26f825d1983476c6697f72130e351f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit f2b88b3225e6267126b722c50cc781159b327e4d)
2025-01-02 19:19:33 +00:00
..
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
browser.cpp SQL/QSqlField: deprecate internal functions setSqlType()/typeID() 2024-03-10 18:16:00 +00:00
browser.h Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
browserwidget.ui add strategy support to sqlbrowser example 2012-03-06 06:34:33 +01:00
connectionwidget.cpp Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
connectionwidget.h Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
main.cpp Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
qsqlconnectiondialog.cpp sqlbrowser example: use idiomatic Qt [1/3]: disabling group-box 2025-01-02 19:19:33 +00:00
qsqlconnectiondialog.h sqlbrowser example: use idiomatic Qt [1/3]: disabling group-box 2025-01-02 19:19:33 +00:00
qsqlconnectiondialog.ui sqlbrowser example: use idiomatic Qt [1/3]: disabling group-box 2025-01-02 19:19:33 +00:00
sqlbrowser.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00