Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 726 Lines • ▼ Show 20 Line(s) | |||||
727 | } | 727 | } | ||
728 | 728 | | |||
729 | bool EffectsHandlerImpl::isMouseInterception() const | 729 | bool EffectsHandlerImpl::isMouseInterception() const | ||
730 | { | 730 | { | ||
731 | return m_grabbedMouseEffects.count() > 0; | 731 | return m_grabbedMouseEffects.count() > 0; | ||
732 | } | 732 | } | ||
733 | 733 | | |||
734 | 734 | | |||
735 | bool EffectsHandlerImpl::touchDown(quint32 id, const QPointF &pos, quint32 time) | 735 | bool EffectsHandlerImpl::touchDown(qint32 id, const QPointF &pos, quint32 time) | ||
736 | { | 736 | { | ||
737 | // TODO: reverse call order? | 737 | // TODO: reverse call order? | ||
738 | for (auto it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) { | 738 | for (auto it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) { | ||
739 | if (it->second->touchDown(id, pos, time)) { | 739 | if (it->second->touchDown(id, pos, time)) { | ||
740 | return true; | 740 | return true; | ||
741 | } | 741 | } | ||
742 | } | 742 | } | ||
743 | return false; | 743 | return false; | ||
744 | } | 744 | } | ||
745 | 745 | | |||
746 | bool EffectsHandlerImpl::touchMotion(quint32 id, const QPointF &pos, quint32 time) | 746 | bool EffectsHandlerImpl::touchMotion(qint32 id, const QPointF &pos, quint32 time) | ||
747 | { | 747 | { | ||
748 | // TODO: reverse call order? | 748 | // TODO: reverse call order? | ||
749 | for (auto it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) { | 749 | for (auto it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) { | ||
750 | if (it->second->touchMotion(id, pos, time)) { | 750 | if (it->second->touchMotion(id, pos, time)) { | ||
751 | return true; | 751 | return true; | ||
752 | } | 752 | } | ||
753 | } | 753 | } | ||
754 | return false; | 754 | return false; | ||
755 | } | 755 | } | ||
756 | 756 | | |||
757 | bool EffectsHandlerImpl::touchUp(quint32 id, quint32 time) | 757 | bool EffectsHandlerImpl::touchUp(qint32 id, quint32 time) | ||
758 | { | 758 | { | ||
759 | // TODO: reverse call order? | 759 | // TODO: reverse call order? | ||
760 | for (auto it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) { | 760 | for (auto it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it) { | ||
761 | if (it->second->touchUp(id, time)) { | 761 | if (it->second->touchUp(id, time)) { | ||
762 | return true; | 762 | return true; | ||
763 | } | 763 | } | ||
764 | } | 764 | } | ||
765 | return false; | 765 | return false; | ||
▲ Show 20 Lines • Show All 1619 Lines • Show Last 20 Lines |