27 lines
515 B
C++
27 lines
515 B
C++
#include "DlgCanvasHeightEditor.h"
|
|
#include "ui_DlgCanvasHeightEditor.h"
|
|
|
|
DlgCanvasHeightEditor::DlgCanvasHeightEditor(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::DlgCanvasHeightEditor)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
DlgCanvasHeightEditor::~DlgCanvasHeightEditor()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void DlgCanvasHeightEditor::setCanvsHeight(unsigned h)
|
|
{
|
|
ui->sbCanvasHeight->setValue(h);
|
|
}
|
|
|
|
unsigned DlgCanvasHeightEditor::canvasHeight() const
|
|
{
|
|
return ui->sbCanvasHeight->value();
|
|
}
|
|
|
|
|