Remove unused variables

This commit is contained in:
vladest 2017-11-21 21:44:04 +01:00
parent 0ea5a7635c
commit a56e4e10c3

View file

@ -422,14 +422,6 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
//
// In Qt 5.9 mouse events must be sent before touch events to make sure some QtQuick components will
// receive mouse events
Qt::MouseButton button = Qt::NoButton;
Qt::MouseButtons buttons = Qt::NoButton;
if (event.getButton() == PointerEvent::PrimaryButton) {
button = Qt::LeftButton;
}
if (event.getButtons() & PointerEvent::PrimaryButton) {
buttons |= Qt::LeftButton;
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
//needed for ScrollBars