added info outputted when setting filters

This commit is contained in:
lostjared
2018-08-22 09:41:29 -07:00
parent 91333df338
commit 2fd462604d
2 changed files with 21 additions and 0 deletions

View File

@@ -604,6 +604,12 @@ void AC_MainWindow::comboFilterChanged(int) {
QTextStream stream(&str);
stream << "Filter changed to: " << filters->currentText() << "\n";
Log(str);
std::string text = filters->currentText().toStdString();
if(text.find("Image") != std::string::npos)
Log(tr("Set an Image to use this filter\n"));
else if(text.find("SubFilter") != std::string::npos)
Log(tr("Set a SubFilter to use this filter\n"));
}
void AC_MainWindow::setFilterSingle() {
@@ -624,6 +630,12 @@ void AC_MainWindow::addClicked() {
QTextStream stream(&qs);
stream << "Added Filter: " << filters->currentText() << "\n";
Log(qs);
std::string text = filters->currentText().toStdString();
if(text.find("Image") != std::string::npos)
Log(tr("Set an Image to use this filter\n"));
else if(text.find("SubFilter") != std::string::npos)
Log(tr("Set a SubFilter to use this filter\n"));
std::vector<std::pair<int, int>> v;
buildVector(v);
playback->setVector(v);