use OutputDevice to set fileinfo,
use new connect function,
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
|
||||
struct Material;
|
||||
|
||||
class OutputDevice : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -20,8 +22,11 @@ public:
|
||||
};
|
||||
|
||||
void print(QString message, int severity) { emit sendMessage(message, severity); };
|
||||
void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle) {
|
||||
emit sendFileInfo(name, materials, vertices, triangle);
|
||||
};
|
||||
|
||||
signals:
|
||||
void sendMessage(QString message, int severity);
|
||||
|
||||
void sendFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
|
||||
};
|
||||
Reference in New Issue
Block a user