-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBitmapForm.cpp
More file actions
39 lines (31 loc) · 761 Bytes
/
BitmapForm.cpp
File metadata and controls
39 lines (31 loc) · 761 Bytes
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
#include "BitmapForm.h"
#include "ui_BitmapForm.h"
#include "ScribbleArea.h"
namespace irec
{
BitmapForm::BitmapForm(QWidget *parent) :
QWidget(parent),
_ui(new Ui::BitmapForm)
{
_ui->setupUi(this);
_ui->scribbleArea->setFixedSize(36, 36);
_ui->scribbleArea->setPenWidth(5);
_ui->scribbleArea->setPenColor(Qt::black);
}
BitmapForm::~BitmapForm()
{
delete _ui;
}
bool BitmapForm::openImage(const QString &fileName)
{
return _ui->scribbleArea->openImage(fileName);
}
QImage BitmapForm::getImage() const
{
return _ui->scribbleArea->getImage();
}
}
void irec::BitmapForm::on_pushButton_clicked()
{
_ui->scribbleArea->clearImage();
}