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

Method DebugRegistersContainer

ui/registerswidget.cpp:838–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836
837
838DebugRegistersContainer::DebugRegistersContainer(ViewFrame* view, BinaryViewRef data, Menu* menu) : m_view(view)
839{
840 m_register = new DebugRegistersWidget(view, data, menu);
841 m_separateEdit = new FilterEdit(m_register);
842 m_filter = new FilteredView(this, m_register, m_register, m_separateEdit);
843 m_filter->setFilterPlaceholderText("Search registers");
844
845 auto headerLayout = new QHBoxLayout;
846 headerLayout->addWidget(m_separateEdit, 1);
847
848 // Vertically-align the hamburger icon with the text field and give the
849 // layout just a bit more breathing room since it's really close to
850 // the surrounding elements.
851 headerLayout->setContentsMargins(1, 1, 6, 0);
852 headerLayout->setAlignment(Qt::AlignBaseline);
853
854 ClickableIcon* icon = new ClickableIcon(QImage(":/debugger_icons/icons/menu.png"), QSize(16, 16));
855 connect(icon, &ClickableIcon::clicked, m_register, &DebugRegistersWidget::showContextMenu);
856 headerLayout->addWidget(icon);
857
858 QVBoxLayout* layout = new QVBoxLayout(this);
859 layout->setContentsMargins(0, 0, 0, 0);
860 layout->addLayout(headerLayout);
861 layout->addWidget(m_filter, 1);
862}
863
864
865void DebugRegistersContainer::updateContent()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected