code review, remove some unneeded automoc includes

This commit is contained in:
Seth Alves 2018-09-28 16:04:40 -07:00
parent cb04894e33
commit bbe9b5c26f
8 changed files with 3 additions and 14 deletions

View file

@ -445,5 +445,3 @@ void GraphicsScriptingInterface::registerMetaTypes(QScriptEngine* engine) {
Q_UNUSED(metaTypeIds); Q_UNUSED(metaTypeIds);
} }
#include "GraphicsScriptingInterface.moc"

View file

@ -401,6 +401,3 @@ scriptable::ScriptableMesh::~ScriptableMesh() {
#endif #endif
strongMesh.reset(); strongMesh.reset();
} }
#include "ScriptableMesh.moc"

View file

@ -240,5 +240,3 @@ glm::uint32 scriptable::ScriptableModel::forEachVertexAttribute(QScriptValue cal
return result; return result;
} }
#endif #endif
#include "ScriptableModel.moc"

View file

@ -207,7 +207,7 @@ bool OffscreenUi::isPointOnDesktopWindow(QVariant point) {
void OffscreenUi::hide(const QString& name) { void OffscreenUi::hide(const QString& name) {
auto rootItem = getRootItem(); auto rootItem = getRootItem();
if (rootItem) { if (rootItem) {
QQuickItem* item = getRootItem()->findChild<QQuickItem*>(name); QQuickItem* item = rootItem->findChild<QQuickItem*>(name);
if (item) { if (item) {
QQmlProperty(item, OFFSCREEN_VISIBILITY_PROPERTY).write(false); QQmlProperty(item, OFFSCREEN_VISIBILITY_PROPERTY).write(false);
} }

View file

@ -169,5 +169,3 @@ int main(int argc, char** argv) {
qDebug() << (duration / 1000.0f); qDebug() << (duration / 1000.0f);
return 0; return 0;
} }
#include "main.moc"

View file

@ -85,7 +85,7 @@ class MyTestWindow : public TestWindow {
void updateCamera() { void updateCamera() {
float t = _time.elapsed() * 1e-3f; float t = _time.elapsed() * 1e-3f;
glm::vec3 up{ 0.0f, 1.0f, 0.0f }; static const glm::vec3 up{ 0.0f, 1.0f, 0.0f };
float distance = 3.0f; float distance = 3.0f;
glm::vec3 camera_position{ distance * sinf(t), 0.5f, distance * cosf(t) }; glm::vec3 camera_position{ distance * sinf(t), 0.5f, distance * cosf(t) };

View file

@ -102,7 +102,7 @@ class MyTestWindow : public TestWindow {
#ifdef INTERACTIVE #ifdef INTERACTIVE
t = _time.elapsed() * 1e-3f; t = _time.elapsed() * 1e-3f;
#endif #endif
glm::vec3 up { 0.0f, 1.0f, 0.0f }; static const glm::vec3 up { 0.0f, 1.0f, 0.0f };
float distance = 3.0f; float distance = 3.0f;
glm::vec3 camera_position { distance * sinf(t), 0.5f, distance * cosf(t) }; glm::vec3 camera_position { distance * sinf(t), 0.5f, distance * cosf(t) };

View file

@ -1103,5 +1103,3 @@ int main(int argc, char** argv) {
app.exec(); app.exec();
return 0; return 0;
} }
#include "main.moc"