qt: Replace deprecated stateChanged with checkStateChanged

Updates QCheckBox signal connections to use checkStateChanged instead of
the deprecated stateChanged signal. This change affects:

- qt_controller.cpp
- configure_filesystem.cpp
- configure_input.cpp
- configure_input_advanced.cpp
- configure_system.cpp
- configure_ui.cpp
- shared_widget.cpp

Also updates lambda signatures to use Qt::CheckState instead of int for
the state parameter where needed.
This commit is contained in:
Zephyron 2025-01-27 15:36:29 +10:00
parent c36151d6e3
commit 2e4db14bc1
No known key found for this signature in database
GPG key ID: 2177ADED8AC966AF
7 changed files with 15 additions and 15 deletions

View file

@ -699,7 +699,7 @@ void Widget::SetupComponent(const QString& label, std::function<void()>& load_fu
restore_func();
}
};
connect(checkbox, &QCheckBox::stateChanged, reset);
connect(checkbox, &QCheckBox::checkStateChanged, reset);
reset(checkbox->checkState());
}
}