color dialog

This commit is contained in:
lostjared
2018-11-07 11:55:36 -08:00
parent ffd8f851b5
commit 9b4f11abca
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ ChromaWindow::ChromaWindow(QWidget *parent) : QDialog(parent) {
setWindowTitle(tr("Chroma Key")); setWindowTitle(tr("Chroma Key"));
setWindowIcon(QPixmap(":/images/icon.png")); setWindowIcon(QPixmap(":/images/icon.png"));
createControls(); createControls();
color_dialog = new QColorDialog(this);
} }
void ChromaWindow::createControls() { void ChromaWindow::createControls() {
@@ -18,4 +17,7 @@ void ChromaWindow::createControls() {
void ChromaWindow::openColorSelect() { void ChromaWindow::openColorSelect() {
QColor color = QColorDialog::getColor();
} }

View File

@@ -14,7 +14,6 @@ public slots:
private: private:
void createControls(); void createControls();
QColorDialog *color_dialog;
QPushButton *button_select; QPushButton *button_select;
}; };