mirror of
https://github.com/overte-org/overte.git
synced 2025-04-30 00:42:46 +02:00
Remove unused variables
This commit is contained in:
parent
0ea5a7635c
commit
a56e4e10c3
1 changed files with 0 additions and 8 deletions
|
@ -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
|
// In Qt 5.9 mouse events must be sent before touch events to make sure some QtQuick components will
|
||||||
// receive mouse events
|
// 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)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
|
||||||
//needed for ScrollBars
|
//needed for ScrollBars
|
||||||
|
|
Loading…
Reference in a new issue