diff --git a/src/snapshotmanager.cpp b/src/snapshotmanager.cpp --- a/src/snapshotmanager.cpp +++ b/src/snapshotmanager.cpp @@ -24,11 +24,13 @@ #include #include #include +#include #include +#include "mainwindow.h" #include "snapshotmanager.h" -SnapshotManager::SnapshotManager(QMainWindow* mainWindow, +SnapshotManager::SnapshotManager(MainWindow* mainWindow, ChannelManager* channelMan) : _menu("&Snapshots"), _takeSnapshotAction("&Take Snapshot", this), @@ -40,6 +42,7 @@ SnapshotManager::SnapshotManager(QMainWi _takeSnapshotAction.setToolTip("Take a snapshot of current plot"); _takeSnapshotAction.setShortcut(QKeySequence("F5")); + _takeSnapshotAction.setIcon(QIcon::fromTheme("camera")); loadSnapshotAction.setToolTip("Load snapshots from CSV files"); clearAction.setToolTip("Delete all snapshots"); connect(&_takeSnapshotAction, SIGNAL(triggered(bool)), @@ -191,7 +194,8 @@ void SnapshotManager::loadSnapshotFromFi ChannelInfoModel channelInfo(channelNames); auto snapshot = new Snapshot( - _mainWindow, QFileInfo(fileName).baseName(), ChannelInfoModel(channelNames)); + _mainWindow, QFileInfo(fileName).baseName(), + ChannelInfoModel(channelNames), true); snapshot->data = data; addSnapshot(snapshot, false);