selectedImageLabel_ = new QLabel(tr("n/a"));
+ applyButton_ = new QPushButton(tr("Play"));
+
mainLayout_ = new QVBoxLayout;
mainLayout_->addWidget(buttonGroup_);
mainLayout_->addWidget(imageCombo_);
mainLayout_->addWidget(selectedImageLabel_);
+ mainLayout_->addWidget(applyButton_);
selectedImageLabel_->setVisible(false);
connect(easyButton_, SIGNAL(toggled(bool)), this, SLOT(difficultySelectionChanged(bool)));
//connect(imageCombo_, SIGNAL(currentIndexChanged(QString)), this, SLOT(imageSelectionChanged(QString)));
connect(imageCombo_, SIGNAL(activated(QString)), this, SLOT(imageSelectionChanged(QString)));
+ connect(applyButton_, SIGNAL(clicked()), this, SLOT(applyClicked()));
}
int SettingsDialog::exec()
}
}
}
+
+void SettingsDialog::applyClicked()
+{
+ this->done(1);
+}