Fixed compilation of 3Dconnexion/libspacenav wit Qt4

This commit is contained in:
Torsten Sadowski
2018-11-06 20:55:33 +01:00
committed by wmayer
parent a2d4d3bb91
commit 8e48d58bcc
10 changed files with 69 additions and 38 deletions

View File

@@ -37,7 +37,7 @@ void Gui::GuiNativeEvent::initSpaceball(QMainWindow *window)
} else {
Base::Console().Log("Connected to spacenav daemon\n");
QSocketNotifier* SpacenavNotifier = new QSocketNotifier(spnav_fd(), QSocketNotifier::Read, this);
connect(SpacenavNotifier, &QSocketNotifier::activated, this, &GuiNativeEvent::pollSpacenav);
connect(SpacenavNotifier, SIGNAL(activated(int)), this, SLOT(pollSpacenav()));
mainApp->setSpaceballPresent(true);
}
}
@@ -68,3 +68,5 @@ void Gui::GuiNativeEvent::pollSpacenav()
}
}
}
#include "3Dconnexion/moc_GuiNativeEventLinux.cpp"