18#include "camerapropertiesdialog.h"
19#include "ui_camerapropertiesdialog.h"
21CameraPropertiesDialog::CameraPropertiesDialog(
const QString& name,
int width,
int height) :
27 ui->nameBox->setText(name);
28 ui->widthBox->setValue(width);
29 ui->heightBox->setValue(height);
32CameraPropertiesDialog::~CameraPropertiesDialog()
37QString CameraPropertiesDialog::getName()
39 return ui->nameBox->text();
42void CameraPropertiesDialog::setName(
const QString& name)
44 ui->nameBox->setText(name);
47int CameraPropertiesDialog::getWidth()
49 return ui->widthBox->value();
52void CameraPropertiesDialog::setWidth(
int width)
54 ui->widthBox->setValue(
width);
57int CameraPropertiesDialog::getHeight()
59 return ui->heightBox->value();
62void CameraPropertiesDialog::setHeight(
int height)
64 ui->heightBox->setValue(
height);