viewer widget update

This commit is contained in:
itsmattkc
2018-12-04 22:59:06 +11:00
parent cdd4ed41e1
commit 8f2b849abc
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -75,6 +75,9 @@ void ViewerWidget::show_context_menu() {
QAction* save_frame_as_image = menu.addAction("Save Frame as Image...");
connect(save_frame_as_image, SIGNAL(triggered(bool)), this, SLOT(save_frame()));
QAction* show_fullscreen_action = menu.addAction("Show Fullscreen");
connect(show_fullscreen_action, SIGNAL(triggered()), this, SLOT(show_fullscreen()));
menu.exec(QCursor::pos());
}
@@ -107,7 +110,11 @@ void ViewerWidget::save_frame() {
fbo.release();
default_fbo = NULL;
rendering = false;
}
}
}
void ViewerWidget::show_fullscreen() {
showFullScreen();
}
void ViewerWidget::retry() {
+1
View File
@@ -62,6 +62,7 @@ private slots:
void retry();
void show_context_menu();
void save_frame();
void show_fullscreen();
};
#endif // VIEWERWIDGET_H