| 2041 | } |
| 2042 | |
| 2043 | void 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 | |
| 2075 | void MainWindow::handleCtrlClickLine(QLineEdit *edit) { |
| 2076 | if (QApplication::keyboardModifiers().testFlag(Qt::ControlModifier)) { |
nothing calls this directly
no test coverage detected