mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 12:20:00 +01:00
updated sort of filters
This commit is contained in:
@@ -96,8 +96,14 @@ void AC_MainWindow::createControls() {
|
||||
filters = new QComboBox(this);
|
||||
filters->setGeometry(10, 105, 380, 30);
|
||||
|
||||
for(int i = 0; i < ac::draw_max-5; ++i) {
|
||||
filters->addItem(ac::draw_strings[i].c_str());
|
||||
std::vector<std::string> fnames;
|
||||
for(int i = 0; i < ac::draw_max-5; ++i)
|
||||
fnames.push_back(ac::draw_strings[i].c_str());
|
||||
|
||||
std::sort(fnames.begin(), fnames.end());
|
||||
|
||||
for(unsigned long i = 0; i < fnames.size(); ++i) {
|
||||
filters->addItem(fnames[i].c_str());
|
||||
}
|
||||
|
||||
for(int i = 0; filter_names[i] != 0; ++i) {
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
#include"fractal.h"
|
||||
#include<unordered_map>
|
||||
#include<utility>
|
||||
#include<vector>
|
||||
#include<algorithm>
|
||||
|
||||
void init_plugins();
|
||||
void draw_plugin(cv::Mat &frame, int filter);
|
||||
|
||||
Reference in New Issue
Block a user