mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Clang format Qt files
This commit is contained in:
parent
56402db7ee
commit
71637cc282
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue