| 487 | } |
| 488 | |
| 489 | void DebugController::setContinueStartsDebug(bool startsDebug) |
| 490 | { |
| 491 | if (m_continueStartsDebug == startsDebug) { |
| 492 | return; // the action is already up to date, so nothing to do |
| 493 | } |
| 494 | m_continueStartsDebug = startsDebug; |
| 495 | |
| 496 | if (startsDebug) { |
| 497 | m_continueDebugger->setText(i18nc("@action", "Debug Launch")); |
| 498 | m_continueDebugger->setIcon(QIcon::fromTheme(QStringLiteral("debug-run"))); |
| 499 | m_continueDebugger->setToolTip(i18nc("@info:tooltip", "Debug current launch")); |
| 500 | m_continueDebugger->setWhatsThis(i18nc("@info:whatsthis", "Executes the target or the program specified in " |
| 501 | "currently active launch configuration inside a Debugger.")); |
| 502 | } else { |
| 503 | Q_ASSERT(m_currentSession); |
| 504 | m_continueDebugger->setText(i18nc("@action", "&Continue")); |
| 505 | m_continueDebugger->setIcon(QIcon::fromTheme(QStringLiteral("media-playback-start"))); |
| 506 | m_continueDebugger->setToolTip(i18nc("@info:tooltip", "Continue application execution") ); |
| 507 | m_continueDebugger->setWhatsThis(i18nc("@info:whatsthis", "Continues the execution of your application in the " |
| 508 | "debugger. This only takes effect when the application " |
| 509 | "has been halted by the debugger (i.e. a breakpoint has " |
| 510 | "been activated or the interrupt was pressed).") ); |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | ContextMenuExtension DebugController::contextMenuExtension(Context* context, QWidget* parent) |
| 515 | { |
nothing calls this directly
no test coverage detected