MCPcopy Create free account
hub / github.com/KDE/kdevelop / setContinueStartsDebug

Method setContinueStartsDebug

kdevplatform/shell/debugcontroller.cpp:489–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void 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
514ContextMenuExtension DebugController::contextMenuExtension(Context* context, QWidget* parent)
515{

Callers

nothing calls this directly

Calls 3

setIconMethod · 0.80
setToolTipMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected