Commit a9d8d970 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Common/InvertedMouseArea): code style

parent 910deeb0
...@@ -17,6 +17,8 @@ Item { ...@@ -17,6 +17,8 @@ Item {
// is on a specific item. It takes only a item parameter. // is on a specific item. It takes only a item parameter.
signal pressed (var pointIsInItem) signal pressed (var pointIsInItem)
// -----------------------------------------------------------------
function _createMouseArea () { function _createMouseArea () {
var parent = Utils.getTopParent(item, true) var parent = Utils.getTopParent(item, true)
var mouseArea = Utils.find(parent.children, function (element) { var mouseArea = Utils.find(parent.children, function (element) {
...@@ -49,6 +51,8 @@ Item { ...@@ -49,6 +51,8 @@ Item {
} }
} }
// -----------------------------------------------------------------
// It's necessary to use a `enabled` variable. // It's necessary to use a `enabled` variable.
// See: http://doc.qt.io/qt-5/qml-qtqml-component.html#completed-signal // See: http://doc.qt.io/qt-5/qml-qtqml-component.html#completed-signal
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment