Commit 041d6a4b authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix build failure after last commit

parent 81cf9f03
......@@ -26,6 +26,7 @@
#include <QGraphicsView>
#include <QMimeData>
#include <QTimer>
#include <QTouchEvent>
KItemListController::KItemListController(KItemModelBase* model, KItemListView* view, QObject* parent) :
QObject(parent),
......@@ -936,7 +937,7 @@ bool KItemListController::gestureEvent(QGestureEvent* event, const QTransform& t
return accepted;
}
bool KItemListController::touchBeginEvent(QGestureEvent* event, const QTransform& transform)
bool KItemListController::touchBeginEvent(QTouchEvent* event, const QTransform& transform)
{
Q_UNUSED(event)
Q_UNUSED(transform)
......@@ -1137,7 +1138,7 @@ bool KItemListController::processEvent(QEvent* event, const QTransform& transfor
case QEvent::Gesture:
return gestureEvent(static_cast<QGestureEvent*>(event), transform);
case QEvent::TouchBegin:
return touchBeginEvent();
return touchBeginEvent(static_cast<QTouchEvent*>(event), transform);
default:
break;
}
......
......@@ -32,6 +32,7 @@ class QInputMethodEvent;
class QKeyEvent;
class QTapGesture;
class QTransform;
class QTouchEvent;
/**
* @brief Controls the view, model and selection of an item-list.
......@@ -301,7 +302,7 @@ private:
bool wheelEvent(QGraphicsSceneWheelEvent* event, const QTransform& transform);
bool resizeEvent(QGraphicsSceneResizeEvent* event, const QTransform& transform);
bool gestureEvent(QGestureEvent* event, const QTransform& transform);
bool touchBeginEvent(QGestureEvent* event, const QTransform& transform);
bool touchBeginEvent(QTouchEvent* event, const QTransform& transform);
void tapTriggered(QTapGesture* tap, const QTransform& transform);
void tapAndHoldTriggered(QGestureEvent* event, const QTransform& transform);
void pinchTriggered(QGestureEvent* event, const QTransform& transform);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment