Skip to content

Commit

Permalink
Merge pull request #120 from SchrodingersGat/dummy-data
Browse files Browse the repository at this point in the history
Fix dummy data
  • Loading branch information
SchrodingersGat authored Dec 18, 2024
2 parents 953b5e6 + 17730f7 commit 9a7c7fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,10 @@ int main(int argc, char *argv[])
w.loadDataFromFile(file);
}

if (parser.isSet(dummyDataOption))
{
w.loadDummyData();
}

return a.exec();
}
7 changes: 2 additions & 5 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ void MainWindow::loadDummyData()
* TODO: Reimplement this as a plugin
*/

/*
// Construct some sources
auto *manager = DataSourceManager::getInstance();

manager->addSource(new DataSource("Source A"));
manager->addSource(new DataSource("Source B"));
manager->addSource(new DataSource("Dummy", "Source A"));
manager->addSource(new DataSource("Dummy", "Source B"));

auto src = manager->getSourceByLabel("Source B");

Expand Down Expand Up @@ -145,7 +143,6 @@ void MainWindow::loadDummyData()
src->addSeries(series_5);
src->addSeries(series_6);
src->addSeries(series_7);
*/
}


Expand Down

0 comments on commit 9a7c7fd

Please sign in to comment.