MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / addCopyableField

Method addCopyableField

examples/triage/fileinfo.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <QFutureWatcher>
12
13void FileInfoWidget::addCopyableField(const QString& name, const QVariant& value)
14{
15 auto& [row, column] = this->m_fieldPosition;
16
17 const auto valueLabel = new CopyableLabel(value.toString(), getThemeColor(AlphanumericHighlightColor));
18 valueLabel->setFont(getMonospaceFont(this));
19
20 this->m_layout->addWidget(new QLabel(name), row, column);
21 this->m_layout->addWidget(valueLabel, row++, column + 1);
22}
23
24void FileInfoWidget::addField(const QString& name, const QVariant& value)
25{

Callers 1

FileInfoWidgetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected