mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 20:00:01 +01:00
formatting + name change
This commit is contained in:
@@ -98,13 +98,13 @@ void ChromaWindow::createControls() {
|
|||||||
|
|
||||||
|
|
||||||
void ChromaWindow::openColorSelectRange() {
|
void ChromaWindow::openColorSelectRange() {
|
||||||
// set to use range
|
// set to use range
|
||||||
string_low->setText(tr("<b>BGR Low:</b> "));
|
string_low->setText(tr("<b>BGR Low:</b> "));
|
||||||
string_high->setText(tr("<b>BGR High:</b>"));
|
string_high->setText(tr("<b>BGR High:</b>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChromaWindow::openColorSelectTolerance() {
|
void ChromaWindow::openColorSelectTolerance() {
|
||||||
// set to use tolerance
|
// set to use tolerance
|
||||||
string_low->setText(tr("<b>Tolerance -</b>"));
|
string_low->setText(tr("<b>Tolerance -</b>"));
|
||||||
string_high->setText(tr("<b>Tolerance +</b>"));
|
string_high->setText(tr("<b>Tolerance +</b>"));
|
||||||
}
|
}
|
||||||
@@ -189,10 +189,10 @@ void ChromaWindow::setEditFromColor(int val, QColor color) {
|
|||||||
void ChromaWindow::setColorLow() {
|
void ChromaWindow::setColorLow() {
|
||||||
QColorDialog *dialog = new QColorDialog(this);
|
QColorDialog *dialog = new QColorDialog(this);
|
||||||
QColor color= dialog->getColor();
|
QColor color= dialog->getColor();
|
||||||
QVariant variant= color;
|
QVariant variant = color;
|
||||||
QString colcode = variant.toString();
|
QString color_var = variant.toString();
|
||||||
set_low_color = color;
|
set_low_color = color;
|
||||||
lowColor->setStyleSheet("QLabel { background-color :"+colcode+" ; color : blue; }");
|
lowColor->setStyleSheet("QLabel { background-color :" + color_var + " ; }");
|
||||||
lowColor->setText("");
|
lowColor->setText("");
|
||||||
setEditFromColor(0, color);
|
setEditFromColor(0, color);
|
||||||
}
|
}
|
||||||
@@ -200,10 +200,11 @@ void ChromaWindow::setColorLow() {
|
|||||||
void ChromaWindow::setColorHigh() {
|
void ChromaWindow::setColorHigh() {
|
||||||
QColorDialog *dialog = new QColorDialog(this);
|
QColorDialog *dialog = new QColorDialog(this);
|
||||||
QColor color = dialog->getColor();
|
QColor color = dialog->getColor();
|
||||||
QVariant variant= color;
|
QVariant variant = color;
|
||||||
QString colcode = variant.toString();
|
QString color_var = variant.toString();
|
||||||
set_high_color = color;
|
set_high_color = color;
|
||||||
highColor->setStyleSheet("QLabel { background-color :"+colcode+" ; color : blue; }");
|
highColor->setStyleSheet("QLabel { background-color :" + color_var + " ;}");
|
||||||
highColor->setText("");
|
highColor->setText("");
|
||||||
setEditFromColor(1, color);
|
setEditFromColor(1, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user