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

Method recentFileMenuAction

MiniZincIDE/ide.cpp:295–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293#ifdef Q_OS_MAC
294
295void IDE::recentFileMenuAction(QAction* a) {
296 if (a->text()=="Clear Menu") {
297 recentFiles.clear();
298 recentFilesMenu->clear();
299 recentFilesMenu->addSeparator();
300 recentFilesMenu->addAction("Clear Menu");
301 } else {
302 openFile(a->data().toString());
303 }
304}
305
306void IDE::recentProjectMenuAction(QAction* a) {
307 if (a->text()=="Clear Menu") {

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected