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
d06cfc96
Commit
d06cfc96
authored
4 years ago
by
Albert Babí Oller
Committed by
Albert Babí Oller
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
contextmenu: wrapping text instead of elision
Gitlab:
#104
Change-Id: I22da3e93730b402a103ea80942de468c75ba88d8
parent
22b9fe63
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/commoncomponents/GeneralMenuItem.qml
+5
-10
5 additions, 10 deletions
src/commoncomponents/GeneralMenuItem.qml
with
5 additions
and
10 deletions
src/commoncomponents/GeneralMenuItem.qml
+
5
−
10
View file @
d06cfc96
...
...
@@ -65,18 +65,13 @@ MenuItem {
anchors.left
:
contextMenuItemImage
.
right
anchors.leftMargin
:
20
anchors.verticalCenter
:
menuItemContentRect
.
verticalCenter
width
:
textMetrics
.
boundingRect
.
width
width
:
contextMenuItemImage
.
visible
?
(
preferredWidth
-
contextMenuItemImage
.
width
-
58
)
:
preferredWidth
-
24
height
:
30
TextMetrics
{
id
:
textMetrics
font
:
contextMenuItemText
.
font
elide
:
Text
.
ElideRight
elideWidth
:
contextMenuItemImage
.
visible
?
(
preferredWidth
-
contextMenuItemImage
.
width
-
58
)
:
preferredWidth
-
24
text
:
itemName
}
text
:
textMetrics
.
elidedText
text
:
itemName
wrapMode
:
Text
.
WordWrap
font.pointSize
:
JamiTheme
.
textFontSize
horizontalAlignment
:
Text
.
AlignLeft
verticalAlignment
:
Text
.
AlignVCenter
...
...
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