+CoreConnectionSettings::NetworkDetectionMode CoreConnectionSettingsPage::modeFromRadioButtons() const
+{
+ if (ui.useQNetworkConfigurationManager->isChecked())
+ return CoreConnectionSettings::UseQNetworkConfigurationManager;
+ if (ui.usePingTimeout->isChecked())
+ return CoreConnectionSettings::UsePingTimeout;
+
+ return CoreConnectionSettings::NoActiveDetection;