This resolves a warning in which these variables _might_ be used uninitialized, but aren't.
Depending on Qt version use QRegularExpression::matchView() when using a QStringView parameter. Remain QRegularExpression::match() for older versions.
Qt Version 6.7.0 deprecates the QCheckBox::stateChanged() signal in favor of the QCheckBox::checkStateChanged() signal. This commit handles the deprecation for later versions while remaining the current implementation for earlier ones.