MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / onEthHostAdd

Method onEthHostAdd

pcsx2-qt/Settings/DEV9SettingsWidget.cpp:383–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void DEV9SettingsWidget::onEthHostAdd()
384{
385 HostEntryUi host;
386 host.Desc = "New Host";
387 host.Enabled = false;
388 AddNewHostConfig(host);
389
390 //Select new Item
391 const QModelIndex viewIndex = m_ethHosts_proxy->mapFromSource(m_ethHost_model->index(m_ethHost_model->rowCount() - 1, 1));
392 m_ui.ethHosts->scrollTo(viewIndex, QAbstractItemView::EnsureVisible);
393 m_ui.ethHosts->selectionModel()->setCurrentIndex(viewIndex, QItemSelectionModel::ClearAndSelect);
394}
395
396void DEV9SettingsWidget::onEthHostDel()
397{

Callers

nothing calls this directly

Calls 2

indexMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected