-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrmFrameLength.cpp
More file actions
46 lines (36 loc) · 1.05 KB
/
FrmFrameLength.cpp
File metadata and controls
46 lines (36 loc) · 1.05 KB
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
36
37
38
39
40
41
42
43
44
45
46
/*
Written By Pradipna Nepal
www.pradsprojects.com
Copyright (C) 2013 Pradipna Nepal
Please read COPYING.txt included along with this source code for more detail.
If not included, see http://www.gnu.org/licenses/
*/
#include "FrmFrameLength.h"
#include "ui_FrmFrameLength.h"
FrmFrameLength::FrmFrameLength(QWidget *parent, int width, int height) :
QDialog(parent),
ui(new Ui::FrmFrameLength)
{
ui->setupUi(this);
this->width = width;
this->height = height;
ui->txtWidth->setText(QString::number(width));
ui->txtHeight->setText(QString::number(height));
connect(ui->btnOk, SIGNAL(clicked()), this, SLOT(ok()));
connect(ui->btnCancel, SIGNAL(clicked()), this, SLOT(reject()));
}
FrmFrameLength::~FrmFrameLength()
{
delete ui;
}
void FrmFrameLength::ok() {
width = ui->txtWidth->text().toInt();
height = ui->txtHeight->text().toInt();
accept();
}
int FrmFrameLength::getWidth() {
return width;
}
int FrmFrameLength::getHeight() {
return height;
}