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

Method getSelectedAddr

gui/qt/datawidget.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43QString DataWidget::getSelectedAddr() {
44 if (!isEnabled()) {
45 return QStringLiteral("000000");
46 }
47 QTextCursor c = textCursor();
48 c.movePosition(QTextCursor::StartOfLine, QTextCursor::MoveAnchor);
49 c.setPosition(c.position()+6, QTextCursor::KeepAnchor); // +6 == size of the address
50 // See MainWindow::drawNextDisassembleLine() for details
51 return c.selectedText();
52}
53
54bool DataWidget::labelCheck() {
55 if (!isEnabled()) {

Callers 5

contextDisasmMethod · 0.80
breakAddGuiMethod · 0.80
watchAddGuiMethod · 0.80
disasmUpdateMethod · 0.80
gotoPressedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected