38 lines
665 B
C++
38 lines
665 B
C++
#include "dlgdrawinit.h"
|
|
#include "ui_dlgdrawinit.h"
|
|
#include "MyInputMethod.h"
|
|
dlgDrawInit::dlgDrawInit(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::dlgDrawInit)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
dlgDrawInit::~dlgDrawInit()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
int dlgDrawInit::getWidth(){
|
|
return ui->spinBoxWidth->value();
|
|
}
|
|
|
|
int dlgDrawInit::getHeight(){
|
|
return ui->spinBoxHeight->value();
|
|
}
|
|
|
|
int dlgDrawInit::setWidth(int w){
|
|
ui->spinBoxWidth->setValue(w);
|
|
return w;
|
|
}
|
|
int dlgDrawInit::setHeight(int h){
|
|
ui->spinBoxHeight->setValue(h);
|
|
return h;
|
|
}
|
|
void dlgDrawInit::on_pushButtonOK_pressed()
|
|
{
|
|
|
|
emit dlgDrawOK();
|
|
|
|
}
|