Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
049cb458
Commit
049cb458
authored
2 years ago
by
Nicolas Vengeon
Browse files
Options
Downloads
Patches
Plain Diff
SwarmDetailsPanel: contextMenu opens to wrong position
GitLab:
#971
Change-Id: Id9c20660a57c677a137dbdaf54e8ee4b28eb3c02
parent
e763f788
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/mainview/components/SwarmDetailsPanel.qml
+13
-4
13 additions, 4 deletions
src/app/mainview/components/SwarmDetailsPanel.qml
with
13 additions
and
4 deletions
src/app/mainview/components/SwarmDetailsPanel.qml
+
13
−
4
View file @
049cb458
...
...
@@ -604,13 +604,14 @@ Rectangle {
model
:
CurrentConversation
.
uris
delegate
:
ItemDelegate
{
id
:
member
width
:
members
.
width
height
:
JamiTheme
.
smartListItemHeight
background
:
Rectangle
{
anchors.fill
:
parent
color
:
{
if
(
member
.
hovered
)
if
(
member
.
hovered
||
nameTextEditHover
.
hovered
)
return
Qt
.
darker
(
JamiTheme
.
selectedColor
,
1.05
)
else
return
"
transparent
"
...
...
@@ -618,11 +619,14 @@ Rectangle {
}
MouseArea
{
id
:
memberMouseArea
anchors.fill
:
parent
enabled
:
modelData
!=
CurrentAccount
.
uri
enabled
:
modelData
!=
=
CurrentAccount
.
uri
acceptedButtons
:
Qt
.
RightButton
onClicked
:
function
(
mouse
)
{
contextMenu
.
openMenuAt
(
x
+
mouse
.
x
,
y
+
mouse
.
y
,
modelData
)
var
position
=
mapToItem
(
members
,
mouse
.
x
,
mouse
.
y
)
contextMenu
.
openMenuAt
(
position
.
x
,
position
.
y
,
modelData
)
}
}
...
...
@@ -648,7 +652,7 @@ Rectangle {
}
ElidedTextLabel
{
id
:
bestName
id
:
nameTextEdit
Layout.preferredHeight
:
JamiTheme
.
preferredFieldHeight
Layout.topMargin
:
JamiTheme
.
preferredMarginSize
/
2
...
...
@@ -663,9 +667,14 @@ Rectangle {
var
role
=
UtilsAdapter
.
getParticipantRole
(
CurrentAccount
.
id
,
CurrentConversation
.
id
,
modelData
)
return
role
===
Member
.
Role
.
INVITED
?
0.5
:
1
}
font.kerning
:
true
verticalAlignment
:
Text
.
AlignVCenter
HoverHandler
{
id
:
nameTextEditHover
}
}
ElidedTextLabel
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment