Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
ffedd50e
Commit
ffedd50e
authored
Nov 28, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/modules/Common/InvertedMouseArea): remove the limit instances of `InvertedMouseArea`
parent
6460fc83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
+7
-16
InvertedMouseArea.qml
tests/ui/modules/Common/InvertedMouseArea.qml
+0
-10
Message.qml
tests/ui/modules/Linphone/Chat/Message.qml
+7
-6
No files found.
tests/ui/modules/Common/InvertedMouseArea.qml
View file @
ffedd50e
...
@@ -21,16 +21,6 @@ Item {
...
@@ -21,16 +21,6 @@ Item {
function
_createMouseArea
()
{
function
_createMouseArea
()
{
var
parent
=
Utils
.
getTopParent
(
item
,
true
)
var
parent
=
Utils
.
getTopParent
(
item
,
true
)
var
mouseArea
=
Utils
.
find
(
parent
.
children
,
function
(
element
)
{
return
Utils
.
qmlTypeof
(
element
,
'
QQuickMouseArea
'
)
})
Utils
.
assert
(
_mouseArea
===
mouseArea
,
'
It already exists a different `MouseArea` at window root. (
'
+
'
`local mouse area`=
'
+
_mouseArea
+
'
, `root mouse area`=
'
+
mouseArea
+
'
)
'
)
if
(
_mouseArea
==
null
)
{
if
(
_mouseArea
==
null
)
{
_mouseArea
=
builder
.
createObject
()
_mouseArea
=
builder
.
createObject
()
...
...
tests/ui/modules/Linphone/Chat/Message.qml
View file @
ffedd50e
...
@@ -18,13 +18,14 @@ Item {
...
@@ -18,13 +18,14 @@ Item {
// -----------------------------------------------------------------
// -----------------------------------------------------------------
function
_handleHoveredLink
(
hoveredLink
)
{
function
_handleHoveredLink
(
hoveredLink
)
{
var
root
=
Utils
.
getTopParent
(
container
)
var
children
=
root
.
children
// Can be the `invertedMouseArea` of other message.
// Can be the `invertedMouseArea` of other message.
var
mouseArea
=
Utils
.
find
(
children
,
function
(
element
)
{
// Or another mouse area. Dangerous?
var
mouseArea
=
Utils
.
find
(
Utils
.
getTopParent
(
container
).
children
,
function
(
element
)
{
return
Utils
.
qmlTypeof
(
element
,
'
QQuickMouseArea
'
)
return
Utils
.
qmlTypeof
(
element
,
'
QQuickMouseArea
'
)
})
}
)
if
(
mouseArea
!=
null
)
{
if
(
mouseArea
!=
null
)
{
mouseArea
.
cursorShape
=
hoveredLink
mouseArea
.
cursorShape
=
hoveredLink
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment