/*!
    \internal
*/
bool QDeclarativeGeoMapGestureArea::mouseMoveEvent(QMouseEvent *event)
{
    if (!(enabled_ && activeGestures_))
        return false;

    touchPoints_.clear();

    touchPoints_ << makeTouchPointFromMouseEvent(event, Qt::TouchPointMoved);
    update();
    return true;
}
Пример #2
0
bool MapHelperUniversal::mouseMove(QMouseEvent *event)
{    
    Q_D(MapHelperUniversal);
    D_MAP;

    d->touch->touchPoints.clear();
    d->touch->touchPoints << makeTouchPointFromMouseEvent(event, Qt::TouchPointMoved);

    if (!d->currentHelper)
        return false;
    return d->currentHelper->proccessing(event->pos());
}
/*!
    \internal
*/
bool QDeclarativeGeoMapGestureArea::mouseMoveEvent(QMouseEvent *event)
{
#if defined(TOUCH_EVENT_WORKAROUND)
    if (!mouseBeingUsed_)
        return true;
#endif
    touchPoints_.clear();

    touchPoints_ << makeTouchPointFromMouseEvent(event, Qt::TouchPointMoved);
    update();
    return true;
}
Пример #4
0
bool MapHelperUniversal::mouseDown(QMouseEvent *event)
{
    Q_D(MapHelperUniversal);
    D_MAP;

    d->touch->touchPoints.clear();
    d->touch->touchPoints << makeTouchPointFromMouseEvent(event, Qt::TouchPointPressed);

    if (d->subhelpers.isEmpty())
        return false;
#warning    d->subhelpers.first(); - что имелось ввиду?
    d->currentHelper = d->subhelpers.begin().value();
    return d->currentHelper->start(event->pos());
}