MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / HexWidget

Method HexWidget

gui/qt/debugger/hexwidget.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <QtGui/QClipboard>
10
11HexWidget::HexWidget(QWidget *parent) : QAbstractScrollArea{parent}, m_data{Q_NULLPTR} {
12#ifdef Q_OS_WIN
13 setFont(QFont(QStringLiteral("Courier"), 10));
14#else
15 setFont(QFont(QStringLiteral("Monospace"), 10));
16#endif
17
18 connect(verticalScrollBar(), &QScrollBar::valueChanged, this, &HexWidget::scroll);
19 connect(horizontalScrollBar(), &QScrollBar::valueChanged, this, &HexWidget::adjust);
20
21 resetSelection();
22 adjust();
23}
24
25void HexWidget::setData(const QByteArray &ba) {
26 if (!isEnabled()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected