Skip to content

Commit 11263a6

Browse files
committed
remove parent element assignment/enable property
1 parent 9c5fc9f commit 11263a6

File tree

7 files changed

+0
-9
lines changed

7 files changed

+0
-9
lines changed

mixins/DoubleClickMixin.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// This mixin provides mouse double click event detecting
22
BaseMouseMixin {
33
constructor: {
4-
this.element = this.parent.element;
54
this._bindClicked(this.enabled)
65
}
76

mixins/DragMixin.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ BaseMouseMixin {
99

1010
///@private
1111
constructor: {
12-
this.element = this.parent.element;
1312
this._bindPressed(this.enabled)
1413
this.moved = $core.createSignalForwarder(this.parent, 'moved')
1514
}

mixins/HoverClickMixin.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
/// this mixin provides mouse hover and click events handling
22
BaseMouseMixin {
3-
property bool enabled: true; ///< enable/disable mixin
43
property bool clickable: true;
54
property bool activeHoverEnabled: false;
65
property bool value;
76
property bool activeHover: false;
87

98
constructor: {
10-
this.element = this.parent.element;
119
this._bindClick(this.clickable)
1210
this._bindHover(this.enabled)
1311
this._bindActiveHover(this.activeHoverEnabled)

mixins/MouseMixin.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ BaseMouseMixin {
88
///@private
99
constructor: {
1010
var parent = this.parent
11-
this.element = parent.element;
1211
this._bindClick(this.clickable)
1312
this._bindHover(this.hoverable)
1413
this._bindPressable(this.pressable)

mixins/OrientationMixin.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ BaseMixin {
44
property real beta; ///< The rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward.
55
property real gamma; ///< The rotation of the device around the Y axis; that is, the number of degrees, ranged between -90 and 90, by which the device is turned left or right.
66
property bool absolute; ///< Indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device.
7-
property bool enabled: true; ///< enable/disable mixin
87

98
constructor: {
10-
this.element = this.parent.element;
119
this._bindOrientation(this.enabled)
1210
}
1311

mixins/RightClickMixin.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
BaseMouseMixin {
22
constructor: {
3-
this.element = this.parent.element;
43
this._bindClicked(this.enabled)
54
}
65

mixins/SwipeMixin.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ BaseMixin {
55
signal touchEnd; ///< @private
66
signal verticalSwiped; ///< emitted on vertical swipe
77
signal horizontalSwiped; ///< emitted on horizontal swipe
8-
property bool enabled: true; ///< enable mixin flag
98

109
constructor: { this._bindTouch(this.enabled) }
1110

0 commit comments

Comments
 (0)