History

resolved merge conflict again

Elisa Lupin-Jimenez committed 8 years ago

Commit 264f3622 parents e49181c 50ecb352 files · +3 −8Browse files

Showing the changes to interface/src/scripting/GooglePolyScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/GooglePolyScriptingInterface.cpp+3−7
@@ -29,7 +29,7 @@ · 28 unmodified lines
29QString listPolyUrl = "https://poly.googleapis.com/v1/assets?";29QString listPolyUrl = "https://poly.googleapis.com/v1/assets?";
30QString getPolyUrl = "https://poly.googleapis.com/v1/assets/model?";30QString getPolyUrl = "https://poly.googleapis.com/v1/assets/model?";
31 31
32//authCode = "broke";32QString authCode = "broke";
33 33
34QStringList validFormats = QStringList() << "BLOCKS" << "FBX" << "GLTF" << "GLTF2" << "OBJ" << "TILT" << "";34QStringList validFormats = QStringList() << "BLOCKS" << "FBX" << "GLTF" << "GLTF2" << "OBJ" << "TILT" << "";
35QStringList validCategories = QStringList() << "animals" << "architecture" << "art" << "food" << 35QStringList validCategories = QStringList() << "animals" << "architecture" << "art" << "food" <<
@@ -112,7 +112,6 @@ QByteArray GooglePolyScriptingInterface::getHTTPRequest(QUrl url) { · 76 unmodified lines
112 event.exec();112 event.exec();
113 113
114 return response->readAll();114 return response->readAll();
115
116}115}
117 116
118// since the list is a QJsonArray and a single model is a QJsonObject117// since the list is a QJsonArray and a single model is a QJsonObject
@@ -148,10 +147,6 @@ QVariant GooglePolyScriptingInterface::parseJSON(QByteArray* response, int fileT · 29 unmodified lines
148}147}
149 148
150 149
151
152
153
154
155/*void GooglePolyScriptingInterface::getAssetList() {150/*void GooglePolyScriptingInterface::getAssetList() {
156 authCode = "AIzaSyDamk7Vth52j7aU9JVKn3ungFS0kGJYc8A";151 authCode = "AIzaSyDamk7Vth52j7aU9JVKn3ungFS0kGJYc8A";
157 QUrl url(listPolyUrl + "key=" + authCode);152 QUrl url(listPolyUrl + "key=" + authCode);
@@ -269,4 +264,5 @@ or this :(( http://blog.mathieu-leplatre.info/access-a-json-webservice-with-qt-c · 111 unmodified lines
269 qCDebug(scriptengine) << "first item: " << firstItem;264 qCDebug(scriptengine) << "first item: " << firstItem;
270 }265 }
271 266
272*/267<<<<<<< HEAD
268*/