| 318 | |
| 319 | |
| 320 | void ImportsTreeView::keyPressEvent(QKeyEvent* event) |
| 321 | { |
| 322 | if ((event->text().size() == 1) && (event->text()[0] > ' ') && (event->text()[0] <= '~')) |
| 323 | { |
| 324 | m_parent->showFilter(event->text()); |
| 325 | event->accept(); |
| 326 | } |
| 327 | else if ((event->key() == Qt::Key_Return) || (event->key() == Qt::Key_Enter)) |
| 328 | { |
| 329 | QList<QModelIndex> sel = selectionModel()->selectedIndexes(); |
| 330 | if (sel.size() != 0) |
| 331 | importDoubleClicked(sel[0]); |
| 332 | } |
| 333 | QTreeView::keyPressEvent(event); |
| 334 | } |
| 335 | |
| 336 | |
| 337 | ImportsWidget::ImportsWidget(QWidget* parent, TriageView* view, BinaryViewRef data) : QWidget(parent) |
nothing calls this directly
no test coverage detected