MCPcopy Create free account
hub / github.com/KDE/labplot / clearUndoStack

Method clearUndoStack

src/frontend/HistoryDialog.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void HistoryDialog::clearUndoStack() {
91 if (KMessageBox::questionTwoActions(this,
92 i18n("Do you really want to clear the undo history?"),
93 i18n("Clear History"),
94 KStandardGuiItem::clear(),
95 KStandardGuiItem::cancel())
96 == KMessageBox::PrimaryAction)
97 m_undoStack->clear();
98}

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected