added combo box

This commit is contained in:
lostjared
2018-11-16 09:31:54 -08:00
parent 79eb588b5c
commit bfb6abb49e
2 changed files with 8 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
#include<cstdlib>
ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
setFixedSize(400, 240);
setFixedSize(400, 300);
setWindowTitle(tr("Chroma Key"));
setWindowIcon(QPixmap(":/images/icon.png"));
createControls();
@@ -89,6 +89,12 @@ void ChromaWindow::createControls() {
highButton = new QPushButton("Set", this);
highButton->setGeometry(300, 90, 25, 20);
select_mode = new QComboBox(this);
select_mode->setGeometry(15, 235, 290, 25);
select_mode->addItem("Replace with Filter");
select_mode->addItem("Replace with Image");
connect(color_add, SIGNAL(clicked()), this, SLOT(colorAdd()));
connect(color_remove, SIGNAL(clicked()), this, SLOT(colorRemove()));
connect(color_okay, SIGNAL(clicked()), this, SLOT(colorSet()));

View File

@@ -30,6 +30,7 @@ private:
std::vector<ac::Keys> colorkeys_vec;
QPushButton *lowButton, *highButton;
QColor set_low_color, set_high_color;
QComboBox *select_mode;
};