| 117 | } |
| 118 | |
| 119 | bool 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 | |
| 132 | DEV9DnsHostDialog::~DEV9DnsHostDialog() = default; |
| 133 |
nothing calls this directly
no test coverage detected