-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialoglinerotation.cpp
26 lines (23 loc) · 1007 Bytes
/
dialoglinerotation.cpp
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
#include "dialoglinerotation.h"
#include "ui_dialoglinerotation.h"
Dialoglinerotation::Dialoglinerotation(QWidget *parent, MainView* view) :
QDialog(parent),
ui(new Ui::Dialoglinerotation)
{
ui->setupUi(this);
this->view = view;
}
Dialoglinerotation::~Dialoglinerotation()
{
delete ui;
}
void Dialoglinerotation::on_Dialoglinerotation_accepted()
{
if(this->ui->doubleSpinBox_4->value() != 0 || this->ui->doubleSpinBox_5->value() != 0 || this->ui->doubleSpinBox_6->value() != 0){
this->view->getScene()->cubeRotation(this->ui->doubleSpinBox->value(), this->ui->doubleSpinBox_2->value(),
this->ui->doubleSpinBox_3->value(), this->ui->doubleSpinBox_4->value(),
this->ui->doubleSpinBox_5->value(), this->ui->doubleSpinBox_6->value(),
this->ui->doubleSpinBox_7->value());
this->view->toggleAnimation();
}
}