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
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| browser.cpp | ||
| browser.h | ||
| browserwidget.ui | ||
| connectionwidget.cpp | ||
| connectionwidget.h | ||
| main.cpp | ||
| qsqlconnectiondialog.cpp | ||
| qsqlconnectiondialog.h | ||
| qsqlconnectiondialog.ui | ||
| sqlbrowser.pro | ||