now works with reset filters

This commit is contained in:
lostjared
2018-06-29 08:21:32 -07:00
parent db11b292c8
commit 8b3d298f0f
4 changed files with 23 additions and 1 deletions

View File

@@ -313,6 +313,10 @@ void AC_MainWindow::createMenu() {
controls_showvideo->setShortcut(tr("Ctrl+V"));
controls_menu->addAction(controls_showvideo);
reset_filters = new QAction(tr("Reset Filters"), this);
reset_filters->setShortcut(tr("Ctrl+R"));
controls_menu->addAction(reset_filters);
controls_showvideo->setEnabled(false);
controls_showvideo->setCheckable(true);
@@ -323,6 +327,7 @@ void AC_MainWindow::createMenu() {
connect(controls_setimage, SIGNAL(triggered()), this, SLOT(controls_SetImage()));
connect(controls_setkey, SIGNAL(triggered()), this, SLOT(controls_SetKey()));
connect(controls_showvideo, SIGNAL(triggered()), this, SLOT(controls_ShowVideo()));
connect(reset_filters, SIGNAL(triggered()), this, SLOT(controls_Reset()));
connect(clear_images, SIGNAL(triggered()), this, SLOT(controls_Clear()));
connect(combo_rgb, SIGNAL(currentIndexChanged(int)), this, SLOT(cb_SetIndex(int)));
controls_pause->setText(tr("Pause"));
@@ -674,6 +679,10 @@ void AC_MainWindow::controls_ShowVideo() {
}
}
void AC_MainWindow::controls_Reset() {
playback->reset_filters();
}
void AC_MainWindow::file_Exit() {
QApplication::exit(0);
}