| 263 | } |
| 264 | |
| 265 | void DisassemblyView::contextAddFunction() |
| 266 | { |
| 267 | NewFunctionDialog* dialog = new NewFunctionDialog(cpu(), this); |
| 268 | dialog->setName(QString("func_%1").arg(m_selectedAddressStart, 8, 16, QChar('0'))); |
| 269 | dialog->setAddress(m_selectedAddressStart); |
| 270 | dialog->setAttribute(Qt::WA_DeleteOnClose); |
| 271 | |
| 272 | if (m_selectedAddressEnd != m_selectedAddressStart) |
| 273 | dialog->setCustomSize(m_selectedAddressEnd - m_selectedAddressStart + 4); |
| 274 | |
| 275 | connect(dialog, &QDialog::accepted, this, [this]() { update(); }); |
| 276 | |
| 277 | dialog->open(); |
| 278 | } |
| 279 | |
| 280 | void DisassemblyView::contextCopyFunctionName() |
| 281 | { |
nothing calls this directly
no test coverage detected