| 41 | } |
| 42 | |
| 43 | QString 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 | |
| 54 | bool DataWidget::labelCheck() { |
| 55 | if (!isEnabled()) { |
no outgoing calls
no test coverage detected