History

logging groups for library/shared and interface

Seth Alves committed 11 years ago

Commit fb607e21 parent cd5245d30 files · +255 −172Browse files

Showing the changes to interface/src/ModelPackager.cpp (1 of 30 files). Show all

Unified · Split

interface/src/ModelPackager.cpp+6−5
@@ -18,6 +18,7 @@ · 17 unmodified lines
1818
1919 #include "ModelSelector.h"
2020 #include "ModelPropertiesDialog.h"
21+#include "InterfaceLogging.h"
2122
2223 #include "ModelPackager.h"
2324
@@ -84,7 +85,7 @@ bool ModelPackager::loadModel() { · 60 unmodified lines
8485 qWarning() << QString("ModelPackager::loadModel(): Could not open FST file %1").arg(_modelFile.filePath());
8586 return false;
8687 }
87− qDebug() << "Reading FST file : " << _modelFile.filePath();
88+ qCDebug(interface) << "Reading FST file : " << _modelFile.filePath();
8889 _mapping = FSTReader::readMapping(fst.readAll());
8990 fst.close();
9091
@@ -103,7 +104,7 @@ bool ModelPackager::loadModel() { · 12 unmodified lines
103104 qWarning() << QString("ModelPackager::loadModel(): Could not open FBX file %1").arg(_fbxInfo.filePath());
104105 return false;
105106 }
106− qDebug() << "Reading FBX file : " << _fbxInfo.filePath();
107+ qCDebug(interface) << "Reading FBX file : " << _fbxInfo.filePath();
107108 QByteArray fbxContents = fbx.readAll();
108109 _geometry = readFBX(fbxContents, QVariantHash());
109110
@@ -188,7 +189,7 @@ bool ModelPackager::zipModel() { · 78 unmodified lines
188189 fst.write(FSTReader::writeMapping(_mapping));
189190 fst.close();
190191 } else {
191− qDebug() << "Couldn't write FST file" << fst.fileName();
192+ qCDebug(interface) << "Couldn't write FST file" << fst.fileName();
192193 return false;
193194 }
194195
@@ -196,7 +197,7 @@ bool ModelPackager::zipModel() { · 1 unmodified line
196197 QString saveDirPath = QFileDialog::getExistingDirectory(nullptr, "Save Model",
197198 "", QFileDialog::ShowDirsOnly);
198199 if (saveDirPath.isEmpty()) {
199− qDebug() << "Invalid directory" << saveDirPath;
200+ qCDebug(interface) << "Invalid directory" << saveDirPath;
200201 return false;
201202 }
202203
@@ -404,7 +405,7 @@ bool ModelPackager::copyTextures(const QString& oldDir, const QDir& newDir) { · 201 unmodified lines
404405 if (!errors.isEmpty()) {
405406 QMessageBox::warning(nullptr, "ModelPackager::copyTextures()",
406407 "Missing textures:" + errors);
407− qDebug() << "ModelPackager::copyTextures():" << errors;
408+ qCDebug(interface) << "ModelPackager::copyTextures():" << errors;
408409 return false;
409410 }
410411