summaryrefslogtreecommitdiffstats
path: root/tests/manual/buffercapture-qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/buffercapture-qml')
-rw-r--r--tests/manual/buffercapture-qml/main.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/manual/buffercapture-qml/main.cpp b/tests/manual/buffercapture-qml/main.cpp
index cf2f29fd4..f86a6ef71 100644
--- a/tests/manual/buffercapture-qml/main.cpp
+++ b/tests/manual/buffercapture-qml/main.cpp
@@ -23,14 +23,13 @@ int main(int argc, char* argv[])
Qt3DCore::QBuffer *buffer = rootObject->findChild<Qt3DCore::QBuffer*>("buffer");
QObject::connect(buffer, &Qt3DCore::QBuffer::dataChanged,
- [=](const QByteArray &bytes) {
- //I know I'm receiving int data
- const uint *data = reinterpret_cast<const uint*>(bytes.data());
- qDebug() << "Data received";
- for (uint i = 0; i < 1024; ++i)
- qDebug() << data[i];
- }
- );
+ &app, [=](const QByteArray &bytes) {
+ // I know I'm receiving int data
+ const uint *data = reinterpret_cast<const uint *>(bytes.data());
+ qDebug() << "Data received";
+ for (uint i = 0; i < 1024; ++i)
+ qDebug() << data[i];
+ });
view.show();