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

Method handleCtrlClickText

gui/qt/debugger.cpp:2043–2073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2041}
2042
2043void MainWindow::handleCtrlClickText(QPlainTextEdit *edit) {
2044 if (QApplication::keyboardModifiers().testFlag(Qt::ControlModifier)) {
2045 bool ok = true;
2046
2047 edit->blockSignals(true);
2048
2049 QTextCursor cursor = edit->textCursor();
2050 cursor.select(QTextCursor::WordUnderCursor);
2051 edit->setTextCursor(cursor);
2052
2053 QString equ = getAddressOfEquate(edit->textCursor().selectedText().toUpper().toStdString());
2054 uint32_t address;
2055
2056 if (!equ.isEmpty()) {
2057 address = hex2int(equ);
2058 } else {
2059 address = edit->textCursor().selectedText().toUInt(&ok, 16);
2060 }
2061
2062 if (ok) {
2063 debugForce();
2064 if (QApplication::keyboardModifiers().testFlag(Qt::ShiftModifier)) {
2065 gotoMemAddr(address);
2066 } else {
2067 gotoDisasmAddr(address);
2068 }
2069 }
2070
2071 edit->blockSignals(false);
2072 }
2073}
2074
2075void MainWindow::handleCtrlClickLine(QLineEdit *edit) {
2076 if (QApplication::keyboardModifiers().testFlag(Qt::ControlModifier)) {

Callers

nothing calls this directly

Calls 2

getAddressOfEquateFunction · 0.85
hex2intFunction · 0.85

Tested by

no test coverage detected