mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Fix build failure after last commit
This commit is contained in:
parent
81cf9f0375
commit
041d6a4bd8
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue