viewer: add shortcut to save frame as image
This commit is contained in:
@@ -588,6 +588,11 @@ void ViewerWidget::RequestNextDryRun()
|
||||
}
|
||||
}
|
||||
|
||||
void ViewerWidget::SaveFrameAsImage()
|
||||
{
|
||||
Core::instance()->OpenExportDialogForViewer(GetConnectedNode(), GetTime(), true);
|
||||
}
|
||||
|
||||
void ViewerWidget::CloseAudioProcessor()
|
||||
{
|
||||
audio_processor_.Close();
|
||||
@@ -1385,6 +1390,11 @@ void ViewerWidget::ShowContextMenu(const QPoint &pos)
|
||||
});
|
||||
}
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
auto save_frame_as_image = menu.addAction(tr("Save Frame As Image"));
|
||||
connect(save_frame_as_image, &QAction::triggered, this, &ViewerWidget::SaveFrameAsImage);
|
||||
|
||||
menu.exec(static_cast<QWidget*>(sender())->mapToGlobal(pos));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user