| 496 | } |
| 497 | |
| 498 | void MainWindow::toolContextMenu(QPoint pos) |
| 499 | { |
| 500 | QMenu menu; |
| 501 | auto action = menu.addAction(tr("Hide inactive tools")); |
| 502 | action->setCheckable(true); |
| 503 | action->setChecked(m_toolFilterModel->filterInactiveTools()); |
| 504 | connect(action, &QAction::toggled, m_toolFilterModel, &ClientToolFilterProxyModel::setFilterInactiveTools); |
| 505 | menu.exec(ui->toolSelector->viewport()->mapToGlobal(pos)); |
| 506 | } |
| 507 | |
| 508 | void MainWindow::navigateToCode(const QUrl &url, int lineNumber, int columnNumber) |
| 509 | { |
nothing calls this directly
no test coverage detected