on xenial help sign in
Remove pressed signal from TouchGate
1600408Daniel d'Andrada
plugins/Ubuntu/Gestures/TouchGate.cpp−2
@@ -53,8 +53,6 @@ void TouchGate::touchEvent(QTouchEvent *event)
53 m_touchInfoMap[touchPoint.id()].ownership = OwnershipRequested;
53 m_touchInfoMap[touchPoint.id()].ownership = OwnershipRequested;
54 m_touchInfoMap[touchPoint.id()].ended = false;
54 m_touchInfoMap[touchPoint.id()].ended = false;
55 TouchRegistry::instance()->requestTouchOwnership(touchPoint.id(), this);
55 TouchRegistry::instance()->requestTouchOwnership(touchPoint.id(), this);
56−
57− Q_EMIT pressed();
58 }
56 }
59
57
60 goodToGo &= m_touchInfoMap.contains(touchPoint.id())
58 goodToGo &= m_touchInfoMap.contains(touchPoint.id())
plugins/Ubuntu/Gestures/TouchGate.h−2
@@ -53,8 +53,6 @@ public:
53Q_SIGNALS:
53Q_SIGNALS:
54 void targetItemChanged(QQuickItem *item);
54 void targetItemChanged(QQuickItem *item);
55
55
56− void pressed();
57−
58protected:
56protected:
59 void touchEvent(QTouchEvent *event) override;
57 void touchEvent(QTouchEvent *event) override;
60private:
58private: