interface

This commit is contained in:
lostjared
2018-11-09 16:19:53 -08:00
parent c282076e17
commit ea0d1e9300
2 changed files with 15 additions and 4 deletions

View File

@@ -28,20 +28,28 @@ void ChromaWindow::createControls() {
high_b->setGeometry(95, 90, 50, 20);
high_g->setGeometry(170, 90, 50, 20);
high_r->setGeometry(245, 90, 50, 20);
QLabel *string_low, *string_high;
string_low = new QLabel("<b>Low BGR:</b> ", this);
string_high = new QLabel("<b>High BGR:</b> ", this);
string_low = new QLabel("<b>BGR Low:</b> ", this);
string_high = new QLabel("<b>BGR High:</b> ", this);
string_low->setGeometry(15, 65, 75, 20);
string_high->setGeometry(15, 90, 75, 20);
button_select_range->setChecked(true);
color_keys = new QListWidget(this);
color_keys->setGeometry(15, 130, 320-30, 100);
color_add = new QPushButton("Add Key", this);
color_add->setGeometry(320-10, 130, 75, 20);
color_remove = new QPushButton("Remove", this);
color_remove->setGeometry(320-10, 155, 75, 20);
}
void ChromaWindow::openColorSelectRange() {
// set to use range
string_low->setText(tr("<b>BGR Low:</b> "));
string_high->setText(tr("<b>BGR High:</b>"));
}
void ChromaWindow::openColorSelectTolerance() {
// set to use tolerance
string_low->setText(tr("<b>Tolerance -</b>"));
string_high->setText(tr("<b>Tolerance +</b>"));
}