Commit a4b6fe90 by Philipp Adolf

Fix typo

parent bb1cedb8
......@@ -37,10 +37,10 @@ void MainWidget::keyPressEvent(QKeyEvent *event){
cam->move(QVector3D(0.0,0.0,10));
}
else if(event->key() == Qt::Key_Right || event->key() == Qt::Key_D){
emit subdifChange(1);
emit subdivChange(1);
}
else if(event->key() == Qt::Key_Left || event->key() == Qt::Key_A){
emit subdifChange(-1);
emit subdivChange(-1);
}
else{
QOpenGLWidget::keyPressEvent(event);
......@@ -153,7 +153,7 @@ void MainWidget::loadNewMesh(){
QString fn = QFileDialog::getOpenFileName(NULL, tr("Open Mesh..."),
QString("..\\Models"),
tr("*.md5mesh *.3ds *.md2 *.obj *.dae *.dxf *.mesh.xml *.blend *.b3d" ));
emit subdifChange(0);
emit subdivChange(0);
loadNewMesh(fn);
}
......
......@@ -38,7 +38,7 @@ public slots:
void subdivide(int level);
signals:
void subdifChange(int value);
void subdivChange(int value);
protected:
void initializeGL();
......
......@@ -57,7 +57,7 @@ MainWindow::MainWindow(QWidget *parent) :
m_centralWidget->setFocus();
// showMaximized();
connect(m_centralWidget, SIGNAL(subdifChange(int)),this,SLOT(subdifChange(int)));
connect(m_centralWidget, SIGNAL(subdivChange(int)),this,SLOT(subdivChange(int)));
}
void MainWindow::sliderfix(int pos){
......@@ -70,7 +70,7 @@ void MainWindow::sliderfix(int pos){
oldSliderpos = newPos;
}
void MainWindow::subdifChange(int change){
void MainWindow::subdivChange(int change){
if(change == 0){
subdivSlider->setSliderPosition(0);
}
......
......@@ -21,7 +21,7 @@ public:
public slots:
void sliderfix(int pos);
void subdifChange(int change);
void subdivChange(int change);
private:
int oldSliderpos = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment