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

Method undo

src/frontend/MainWin.cpp:2280–2294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2278}
2279
2280void MainWin::undo() {
2281 WAIT_CURSOR;
2282 m_project->undoStack()->undo();
2283 m_redoAction->setEnabled(true);
2284
2285 const int index = m_project->undoStack()->index();
2286 if (index == 0)
2287 m_undoAction->setEnabled(false);
2288
2289 const bool changed = (index != undoStackIndexLastSave);
2290 m_saveAction->setEnabled(changed);
2291 m_project->setChanged(changed);
2292 updateTitleBar();
2293 RESET_CURSOR;
2294}
2295
2296void MainWin::redo() {
2297 WAIT_CURSOR;

Callers 15

curveRangeChangeMethod · 0.45
statisticsMaskValuesMethod · 0.45
testInsertRowMethod · 0.45
testRemoveRowMethod · 0.45
clearContentFormulaMethod · 0.45
setAxisColorMethod · 0.45
setTitleColorMethod · 0.45
setMajorTickColorMethod · 0.45
setMinorTickColorMethod · 0.45
setLineColorMethod · 0.45
setTickLabelColorMethod · 0.45

Calls 4

undoStackMethod · 0.45
setEnabledMethod · 0.45
indexMethod · 0.45
setChangedMethod · 0.45

Tested by 15

curveRangeChangeMethod · 0.36
statisticsMaskValuesMethod · 0.36
testInsertRowMethod · 0.36
testRemoveRowMethod · 0.36
clearContentFormulaMethod · 0.36
setAxisColorMethod · 0.36
setTitleColorMethod · 0.36
setMajorTickColorMethod · 0.36
setMinorTickColorMethod · 0.36
setLineColorMethod · 0.36
setTickLabelColorMethod · 0.36