Hi all.
I want to encapsulate a MouseArea with an item that adds some additional logic and, expose the same signals (with the same parameters).
I tried to expose the "pressed" and "released" signals as follows (with a parameter of MouseEvent type, as the original signals):
Qt Code:
  1. import QtQuick 2.0
  2.  
  3. Item {
  4. signal pressed(MouseEvent mouse)
  5. signal released(MouseEvent mouse)
  6.  
  7. MouseArea
  8. {
  9. anchors.fill: parent
  10.  
  11. onPressed: parent.pressed(mouse)
  12. onReleased: parent.released(mouse)
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 

But, it seems like it doesn't recognize the MouseEvent type.
What do I do wrong? Is there a way to declare variables with the MouseEvent type?