-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathfocusassistant.cpp
More file actions
35 lines (29 loc) · 802 Bytes
/
focusassistant.cpp
File metadata and controls
35 lines (29 loc) · 802 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
#include "focusassistant.h"
#include "ui_focusassistant.h"
FocusAssistant::FocusAssistant(QWidget *parent) :
QWidget(parent),
ui(new Ui::FocusAssistant)
{
ui->setupUi(this);
displayLeft = checkstate();
connect(ui->leftCamera, SIGNAL(toggled(bool)), this, SLOT(checkchange()));
connect(ui->okButton, SIGNAL(clicked()), SIGNAL(winhide()));
connect(ui->okButton, SIGNAL(clicked()), this, SLOT(hide()));
//connect(this, SIGNAL(destroyed()), SIGNAL(winhide()));
}
FocusAssistant::~FocusAssistant()
{
delete ui;
}
bool FocusAssistant::checkstate()
{
return (ui->leftCamera->isChecked())?(true):(false);
}
void FocusAssistant::checkchange()
{
displayLeft = checkstate();
}
void FocusAssistant::playImage(QPixmap img)
{
ui->imageDisplay->setPixmap(img);
}