DEV9: Clang format Qt files

This commit is contained in:
TheLastRar 2022-05-22 13:50:17 +01:00 committed by refractionpcsx2
parent 56402db7ee
commit 71637cc282
2 changed files with 2 additions and 3 deletions

View File

@ -87,7 +87,7 @@ DEV9SettingsWidget::DEV9SettingsWidget(SettingsDialog* dialog, QWidget* parent)
AddAdapter(adapter); AddAdapter(adapter);
#endif #endif
for (const AdapterEntry& adapter : SocketAdapter::GetAdapters()) for (const AdapterEntry& adapter : SocketAdapter::GetAdapters())
AddAdapter(adapter); AddAdapter(adapter);
std::sort(m_api_list.begin(), m_api_list.end()); std::sort(m_api_list.begin(), m_api_list.end());
for (auto& list : m_adapter_list) for (auto& list : m_adapter_list)
@ -377,7 +377,7 @@ void DEV9SettingsWidget::onEthDeviceChanged(int index)
void DEV9SettingsWidget::onEthDHCPInterceptChanged(int state) void DEV9SettingsWidget::onEthDHCPInterceptChanged(int state)
{ {
const bool enabled = (state == Qt::CheckState::PartiallyChecked ? Host::GetBaseBoolSettingValue("DEV9/Eth", "InterceptDHCP", false) : state) || const bool enabled = (state == Qt::CheckState::PartiallyChecked ? Host::GetBaseBoolSettingValue("DEV9/Eth", "InterceptDHCP", false) : state) ||
((m_adapter_options & AdapterOptions::DHCP_ForcedOn) == AdapterOptions::DHCP_ForcedOn); ((m_adapter_options & AdapterOptions::DHCP_ForcedOn) == AdapterOptions::DHCP_ForcedOn);
// clang-format off // clang-format off
const bool ipOverride = (m_adapter_options & AdapterOptions::DHCP_OverrideIP) == AdapterOptions::DHCP_OverrideIP; const bool ipOverride = (m_adapter_options & AdapterOptions::DHCP_OverrideIP) == AdapterOptions::DHCP_OverrideIP;

View File

@ -60,7 +60,6 @@ protected:
bool eventFilter(QObject* object, QEvent* event); bool eventFilter(QObject* object, QEvent* event);
private: private:
void AddAdapter(const AdapterEntry& adapter); void AddAdapter(const AdapterEntry& adapter);
void RefreshHostList(); void RefreshHostList();
int CountHostsConfig(); int CountHostsConfig();