equal
deleted
inserted
replaced
32 SpacenavWindow w; |
32 SpacenavWindow w; |
33 w.show(); |
33 w.show(); |
34 |
34 |
35 QObject::connect(&t, &SpacenavReceiver::spacenavMotionEvent, &w, &SpacenavWindow::spacenavMotionEvent, 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 QObject::connect(&t, &SpacenavReceiver::spacenavButtonEvent, &w, &SpacenavWindow::spacenavButtonEvent, Qt::ConnectionType::QueuedConnection); |
|
37 QObject::connect(&t, &SpacenavReceiver::spacenavConnectionStatus, &w, &SpacenavWindow::spacenavConnectionStatus, Qt::ConnectionType::QueuedConnection); |
37 |
38 |
38 t.start(); |
39 t.start(); |
39 int qtResultCode = app.exec(); |
40 int qtResultCode = app.exec(); |
40 |
41 |
41 if (t.isRunning()) { |
42 if (t.isRunning()) { |