-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrmMemorySize.cpp
More file actions
35 lines (29 loc) · 963 Bytes
/
FrmMemorySize.cpp
File metadata and controls
35 lines (29 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "FrmMemorySize.h"
#include "ui_FrmMemorySize.h"
FrmMemorySize::FrmMemorySize(QWidget *parent, int dataSpaceSize, int stackSpaceSize) :
QDialog(parent),
ui(new Ui::FrmMemorySize)
{
ui->setupUi(this);
this->dataSpaceSize = dataSpaceSize;
this->stackSpaceSize = stackSpaceSize;
ui->txtDataSpaceSize->setText(QString::number(dataSpaceSize));
ui->txtStackSpaceSize->setText(QString::number(stackSpaceSize));
connect(ui->btnOk, SIGNAL(clicked()), this, SLOT(ok()));
connect(ui->btnCancel, SIGNAL(clicked()), this, SLOT(reject()));
}
FrmMemorySize::~FrmMemorySize()
{
delete ui;
}
int FrmMemorySize::getDataSpaceSize() {
return dataSpaceSize;
}
int FrmMemorySize::getStackSpaceSize() {
return stackSpaceSize;
}
void FrmMemorySize::ok() {
dataSpaceSize = ui->txtDataSpaceSize->text().toInt();
stackSpaceSize = ui->txtStackSpaceSize->text().toInt();
accept();
}