File: canvassizeform.cpp

package info (click to toggle)
qsstv 9.5.8-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,928 kB
  • sloc: cpp: 47,579; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (5)
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
#include "canvassizeform.h"
#include "ui_canvassizeform.h"
#include "supportfunctions.h"

canvasSizeForm::canvasSizeForm(QWidget *parent) :
  QDialog(parent),
  ui(new Ui::canvasSizeForm)
{
  ui->setupUi(this);
}

canvasSizeForm::~canvasSizeForm()
{
  delete ui;
}

QRect canvasSizeForm::getSize()
{
  int x;
  int y;
  getValue(x,ui->widthSpinBox);
  getValue(y,ui->heightSpinBox);
  return QRect(0,0,x,y);
}

void canvasSizeForm::setSize(int x,int y)
{
  setValue(x,ui->widthSpinBox);
  setValue(y,ui->heightSpinBox);
}