35 lines
653 B
C++
35 lines
653 B
C++
#include "newheaddialog.h"
|
|
#include "ui_newheaddialog.h"
|
|
|
|
int g_iRows=1;
|
|
int g_iCols=1;
|
|
|
|
NewHeadDialog::NewHeadDialog(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::NewHeadDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &NewHeadDialog::accepted_OK);
|
|
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &NewHeadDialog::rejected_Cancel);
|
|
}
|
|
|
|
NewHeadDialog::~NewHeadDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
|
|
void NewHeadDialog::accepted_OK()
|
|
{
|
|
g_iRows = ui->spinBox->value();
|
|
g_iCols = ui->spinBox_2->value();
|
|
//
|
|
accepted();
|
|
}
|
|
|
|
void NewHeadDialog::rejected_Cancel()
|
|
{
|
|
reject();
|
|
}
|