MCPcopy Create free account
hub / github.com/Vector35/debugger / DebugModulesWithFilter

Method DebugModulesWithFilter

ui/moduleswidget.cpp:572–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570
571
572DebugModulesWithFilter::DebugModulesWithFilter(ViewFrame* view, BinaryViewRef data) : m_view(view)
573{
574 m_modules = new DebugModulesWidget(view, data);
575 m_separateEdit = new FilterEdit(m_modules);
576 m_filter = new FilteredView(this, m_modules, m_modules, m_separateEdit);
577 m_filter->setFilterPlaceholderText("Search modules");
578
579 auto headerLayout = new QHBoxLayout;
580 headerLayout->addWidget(m_separateEdit, 1);
581
582 // Vertically-align the hamburger icon with the text field and give the
583 // layout just a bit more breathing room since it's really close to
584 // the surrounding elements.
585 headerLayout->setContentsMargins(1, 1, 6, 0);
586 headerLayout->setAlignment(Qt::AlignBaseline);
587
588 auto* icon = new ClickableIcon(QImage(":/debugger_icons/icons/menu.png"), QSize(16, 16));
589 connect(icon, &ClickableIcon::clicked, m_modules, &DebugModulesWidget::showContextMenu);
590 headerLayout->addWidget(icon);
591
592 auto* layout = new QVBoxLayout(this);
593 layout->setContentsMargins(0, 0, 0, 0);
594 layout->addLayout(headerLayout);
595 layout->addWidget(m_filter, 1);
596}
597
598
599void DebugModulesWithFilter::updateFonts()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected