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

Method getOpenFiles

MiniZincIDE/mainwindow.cpp:2737–2749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2735}
2736
2737QStringList MainWindow::getOpenFiles()
2738{
2739 QStringList ret;
2740 for (int i=0; i<ui->tabWidget->count(); i++) {
2741 CodeEditor* ce = qobject_cast<CodeEditor*>(ui->tabWidget->widget(i));
2742 if (ce) {
2743 ret << ce->filepath;
2744 } else {
2745 ret << "";
2746 }
2747 }
2748 return ret;
2749}
2750
2751QList<CodeEditor*> MainWindow::codeEditors()
2752{

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
widgetMethod · 0.45

Tested by

no test coverage detected