mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-18 12:50:07 +01:00
added info outputted when setting filters
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -63,6 +63,15 @@ void SearchWindow::add_current() {
|
||||
QListWidgetItem *in = search_list->item(index);
|
||||
custom_list->addItem(in->text());
|
||||
main_window->updateList();
|
||||
std::string text = in->text().toStdString();
|
||||
if(text.find("Image") != std::string::npos)
|
||||
main_window->Log(tr("Set an Image to use this filter\n"));
|
||||
else if(text.find("SubFilter") != std::string::npos)
|
||||
main_window->Log(tr("Set a SubFilter to use this filter\n"));
|
||||
QString qtext;
|
||||
QTextStream stream(&qtext);
|
||||
stream << "Filter set to: " << in->text() << "\n";
|
||||
main_window->Log(qtext);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user