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

Method eventFilter

pcsx2-qt/Settings/DEV9DnsHostDialog.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool DEV9DnsHostDialog::eventFilter(QObject* object, QEvent* event)
120{
121 if (object == m_ui.hostList)
122 {
123 //Check isVisible to avoind an unnessecery call to ResizeColumnsForTableView()
124 if (event->type() == QEvent::Resize && m_ui.hostList->isVisible())
125 QtUtils::ResizeColumnsForTableView(m_ui.hostList, {80, -1, 170, 90, 80});
126 else if (event->type() == QEvent::Show)
127 QtUtils::ResizeColumnsForTableView(m_ui.hostList, {80, -1, 170, 90, 80});
128 }
129 return false;
130}
131
132DEV9DnsHostDialog::~DEV9DnsHostDialog() = default;
133

Callers

nothing calls this directly

Calls 2

typeMethod · 0.45

Tested by

no test coverage detected