Commit a4b6fe90 by Philipp Adolf

Fix typo

parent bb1cedb8
...@@ -37,10 +37,10 @@ void MainWidget::keyPressEvent(QKeyEvent *event){ ...@@ -37,10 +37,10 @@ void MainWidget::keyPressEvent(QKeyEvent *event){
cam->move(QVector3D(0.0,0.0,10)); cam->move(QVector3D(0.0,0.0,10));
} }
else if(event->key() == Qt::Key_Right || event->key() == Qt::Key_D){ 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){ else if(event->key() == Qt::Key_Left || event->key() == Qt::Key_A){
emit subdifChange(-1); emit subdivChange(-1);
} }
else{ else{
QOpenGLWidget::keyPressEvent(event); QOpenGLWidget::keyPressEvent(event);
...@@ -153,7 +153,7 @@ void MainWidget::loadNewMesh(){ ...@@ -153,7 +153,7 @@ void MainWidget::loadNewMesh(){
QString fn = QFileDialog::getOpenFileName(NULL, tr("Open Mesh..."), QString fn = QFileDialog::getOpenFileName(NULL, tr("Open Mesh..."),
QString("..\\Models"), QString("..\\Models"),
tr("*.md5mesh *.3ds *.md2 *.obj *.dae *.dxf *.mesh.xml *.blend *.b3d" )); tr("*.md5mesh *.3ds *.md2 *.obj *.dae *.dxf *.mesh.xml *.blend *.b3d" ));
emit subdifChange(0); emit subdivChange(0);
loadNewMesh(fn); loadNewMesh(fn);
} }
......
...@@ -38,7 +38,7 @@ public slots: ...@@ -38,7 +38,7 @@ public slots:
void subdivide(int level); void subdivide(int level);
signals: signals:
void subdifChange(int value); void subdivChange(int value);
protected: protected:
void initializeGL(); void initializeGL();
......
...@@ -57,7 +57,7 @@ MainWindow::MainWindow(QWidget *parent) : ...@@ -57,7 +57,7 @@ MainWindow::MainWindow(QWidget *parent) :
m_centralWidget->setFocus(); m_centralWidget->setFocus();
// showMaximized(); // 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){ void MainWindow::sliderfix(int pos){
...@@ -70,7 +70,7 @@ void MainWindow::sliderfix(int pos){ ...@@ -70,7 +70,7 @@ void MainWindow::sliderfix(int pos){
oldSliderpos = newPos; oldSliderpos = newPos;
} }
void MainWindow::subdifChange(int change){ void MainWindow::subdivChange(int change){
if(change == 0){ if(change == 0){
subdivSlider->setSliderPosition(0); subdivSlider->setSliderPosition(0);
} }
......
...@@ -21,7 +21,7 @@ public: ...@@ -21,7 +21,7 @@ public:
public slots: public slots:
void sliderfix(int pos); void sliderfix(int pos);
void subdifChange(int change); void subdivChange(int change);
private: private:
int oldSliderpos = 0; 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