23 lines
403 B
C++
23 lines
403 B
C++
#include "addnewwhat.h"
|
|
#include "ui_addnewwhat.h"
|
|
|
|
AddNewWhat::AddNewWhat(QWidget *parent) : QDialog(parent), ui(new Ui::AddNewWhat) {
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
AddNewWhat::~AddNewWhat() {
|
|
delete ui;
|
|
}
|
|
|
|
void AddNewWhat::accept() {
|
|
int idx = ui->comboBox->currentIndex();
|
|
returnCode = (ReturnCode) (idx+1);
|
|
|
|
QDialog::accept();
|
|
}
|
|
|
|
void AddNewWhat::reject() {
|
|
returnCode = Cancel;
|
|
|
|
QDialog::reject();
|
|
} |