Commit 1a7b0135 authored by Eric Armbruster's avatar Eric Armbruster 🍁
Browse files

Use breakpoint icon for breakpoints

parent 2c899011
Pipeline #262411 passed with stage
in 5 minutes and 35 seconds
......@@ -232,7 +232,7 @@ KatePluginGDBView::KatePluginGDBView(KTextEditor::Plugin *plugin, KTextEditor::M
a = actionCollection()->addAction(QStringLiteral("toggle_breakpoint"));
a->setText(i18n("Toggle Breakpoint / Break"));
a->setIcon(QIcon::fromTheme(QStringLiteral("media-playback-pause")));
a->setIcon(QIcon::fromTheme(QStringLiteral("breakpoint")));
actionCollection()->setDefaultShortcut(a, QKeySequence((Qt::SHIFT | Qt::Key_F11)));
connect(a, &QAction::triggered, this, &KatePluginGDBView::slotToggleBreakpoint);
......@@ -830,7 +830,7 @@ void KatePluginGDBView::enableBreakpointMarks(KTextEditor::Document *document)
if (iface) {
iface->setEditableMarks(iface->editableMarks() | KTextEditor::MarkInterface::BreakpointActive);
iface->setMarkDescription(KTextEditor::MarkInterface::BreakpointActive, i18n("Breakpoint"));
iface->setMarkIcon(KTextEditor::MarkInterface::BreakpointActive, QIcon::fromTheme(QStringLiteral("media-playback-pause")));
iface->setMarkIcon(KTextEditor::MarkInterface::BreakpointActive, QIcon::fromTheme(QStringLiteral("breakpoint")));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment