diff options
Diffstat (limited to 'src/widget/wwidget.cpp')
-rw-r--r-- | src/widget/wwidget.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/widget/wwidget.cpp b/src/widget/wwidget.cpp index 4f05531072..40b006e1ac 100644 --- a/src/widget/wwidget.cpp +++ b/src/widget/wwidget.cpp @@ -38,7 +38,7 @@ WWidget::~WWidget() { } bool WWidget::touchIsRightButton() { - return (m_pTouchShift->get() != 0.0); + return m_pTouchShift->toBool(); } bool WWidget::event(QEvent* e) { @@ -92,11 +92,13 @@ bool WWidget::event(QEvent* e) { const QTouchEvent::TouchPoint &touchPoint = touchEvent->touchPoints().first(); QMouseEvent mouseEvent(eventType, - touchPoint.pos().toPoint(), - touchPoint.screenPos().toPoint(), + touchPoint.pos(), + touchPoint.pos(), + touchPoint.screenPos(), m_activeTouchButton, // Button that causes the event Qt::NoButton, // Not used, so no need to fake a proper value. - touchEvent->modifiers()); + touchEvent->modifiers(), + Qt::MouseEventSynthesizedByApplication); return QWidget::event(&mouseEvent); } |