changed member function name

This commit is contained in:
lostjared
2018-11-15 11:42:46 -08:00
parent 83ffd21947
commit 021217c0e9
2 changed files with 4 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ void ChromaWindow::colorSet() {
ac::setBlockedColorKeys(colorkeys_vec); ac::setBlockedColorKeys(colorkeys_vec);
} }
void ChromaWindow::setEditFromVec(int val, QColor color) { void ChromaWindow::setEditFromColor(int val, QColor color) {
if(val == 0) { if(val == 0) {
QString text; QString text;
QTextStream stream(&text); QTextStream stream(&text);
@@ -194,7 +194,7 @@ void ChromaWindow::setColorLow() {
set_low_color = color; set_low_color = color;
lowColor->setStyleSheet("QLabel { background-color :"+colcode+" ; color : blue; }"); lowColor->setStyleSheet("QLabel { background-color :"+colcode+" ; color : blue; }");
lowColor->setText(""); lowColor->setText("");
setEditFromVec(0, color); setEditFromColor(0, color);
} }
void ChromaWindow::setColorHigh() { void ChromaWindow::setColorHigh() {
@@ -205,5 +205,5 @@ void ChromaWindow::setColorHigh() {
set_high_color = color; set_high_color = color;
highColor->setStyleSheet("QLabel { background-color :"+colcode+" ; color : blue; }"); highColor->setStyleSheet("QLabel { background-color :"+colcode+" ; color : blue; }");
highColor->setText(""); highColor->setText("");
setEditFromVec(1, color); setEditFromColor(1, color);
} }

View File

@@ -10,7 +10,7 @@ public:
ChromaWindow(QWidget *parent); ChromaWindow(QWidget *parent);
bool checkInput(cv::Vec3b &low, cv::Vec3b &high); bool checkInput(cv::Vec3b &low, cv::Vec3b &high);
bool checkEdit(QLineEdit *edit); bool checkEdit(QLineEdit *edit);
void setEditFromVec(int val, QColor color); void setEditFromColor(int val, QColor color);
public slots: public slots:
void openColorSelectRange(); void openColorSelectRange();
void openColorSelectTolerance(); void openColorSelectTolerance();