added subfilter button to search window

This commit is contained in:
lostjared
2018-08-21 16:36:21 -07:00
parent 13eecd3dc1
commit 11973811d3
4 changed files with 32 additions and 4 deletions

View File

@@ -1081,6 +1081,19 @@ void AC_MainWindow::stopRecording() {
progress_bar->hide();
}
void AC_MainWindow::setSubFilter(const QString &filter_num) {
int value_index = filter_map[filter_num.toStdString()].first;
int filter_index = filter_map[filter_num.toStdString()].second;
if(value_index == 0) {
std::ostringstream stream;
stream << "SubFilter set to: " << filter_num.toStdString() << "\n";
stream << "SubFilter index: " << filter_index << "\n";
playback->setSubFilter(filter_index);
QString l = stream.str().c_str();
Log(l);
}
}
void AC_MainWindow::frameInc() {
frame_index++;
QString frame_string;