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