MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / recentProjectMenuAction

Method recentProjectMenuAction

MiniZincIDE/ide.cpp:306–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void IDE::recentProjectMenuAction(QAction* a) {
307 if (a->text()=="Clear Menu") {
308 IDE::instance()->recentProjects.clear();
309 recentProjectsMenu->clear();
310 recentProjectsMenu->addSeparator();
311 recentProjectsMenu->addAction("Clear Menu");
312 } else {
313 openFile(a->data().toString());
314 }
315}
316
317#endif
318

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected