equal
deleted
inserted
replaced
30 SpacenavReceiver t; |
30 SpacenavReceiver t; |
31 |
31 |
32 SpacenavWindow w; |
32 SpacenavWindow w; |
33 w.show(); |
33 w.show(); |
34 |
34 |
35 QObject::connect(&t, &SpacenavReceiver::spacenavEvent, &w, &SpacenavWindow::spacenavEvent, Qt::ConnectionType::QueuedConnection); |
35 QObject::connect(&t, &SpacenavReceiver::spacenavMotionEvent, &w, &SpacenavWindow::spacenavMotionEvent, Qt::ConnectionType::QueuedConnection); |
|
36 QObject::connect(&t, &SpacenavReceiver::spacenavButtonEvent, &w, &SpacenavWindow::spacenavButtonEvent, Qt::ConnectionType::QueuedConnection); |
36 |
37 |
37 t.start(); |
38 t.start(); |
38 int qtResultCode = app.exec(); |
39 int qtResultCode = app.exec(); |
39 |
40 |
40 if (t.isRunning()) { |
41 if (t.isRunning()) { |