use OutputDevice to set fileinfo,

use new connect function,
This commit is contained in:
Anakin
2017-01-29 15:19:20 +01:00
parent 98302664ca
commit 7b739ab892
6 changed files with 19 additions and 26 deletions

View File

@@ -142,10 +142,6 @@ void GeometryEngine::drawGeometry(QOpenGLShaderProgram *program, bool wireframe)
}
}
/////////////////////////////////////////////////////////////////////////
// slots
void GeometryEngine::loadFile(QString filePath)
{
// cleanup old stuff and recreate buffers
@@ -215,7 +211,7 @@ void GeometryEngine::loadFile(QString filePath)
emit requestUpdate();
OutputDevice::getInstance()->print("done..", 0);
emit sendFileInfo(filePath.right(filePath.size() - filePath.lastIndexOf(QRegExp("/|\\\\")) - 1), m_materials, vertexData.size(), indexData.size() / 3);
OutputDevice::getInstance()->setFileInfo(filePath.right(filePath.size() - filePath.lastIndexOf(QRegExp("/|\\\\")) - 1), m_materials, vertexData.size(), indexData.size() / 3);
}
catch (std::invalid_argument e)
{