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
b1a7ba7f
Commit
b1a7ba7f
authored
4 years ago
by
Ming Rui Zhang
Committed by
Andreas Traczyk
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
messagewebview: adapt message webview header in different scale factor
Change-Id: I4cf7b16663b5bdbb3f0f095d61411f12b02707d1
parent
d84144c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mainview/components/MessageWebViewHeader.qml
+14
-33
14 additions, 33 deletions
src/mainview/components/MessageWebViewHeader.qml
with
14 additions
and
33 deletions
src/mainview/components/MessageWebViewHeader.qml
+
14
−
33
View file @
b1a7ba7f
...
...
@@ -74,70 +74,51 @@ Rectangle {
Rectangle
{
id
:
userNameOrIdRect
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
Layout.alignment
:
Qt
.
AlignLeft
|
Qt
.
AlignTop
// Width + margin.
Layout.preferredWidth
:
messagingHeaderRect
.
width
-
backToWelcomeViewButton
.
width
-
buttonGroup
.
width
-
45
Layout.preferredHeight
:
messagingHeaderRect
.
height
Layout.fillHeight
:
true
Layout.topMargin
:
7
Layout.bottomMargin
:
7
Layout.leftMargin
:
16
color
:
"
transparent
"
ColumnLayout
{
id
:
userNameOrIdColumnLayout
Layout.alignment
:
Qt
.
AlignVCenter
anchors.fill
:
parent
Label
{
spacing
:
0
ElidedTextLabel
{
id
:
userAliasLabel
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
Layout.preferredWidth
:
userNameOrIdRect
.
width
Layout.preferredHeight
:
textMetricsuserAliasLabel
.
boundingRect
.
height
Layout.topMargin
:
userUserNameLabel
.
text
===
""
?
0
:
10
font.pointSize
:
JamiTheme
.
menu
FontSize
font.pointSize
:
JamiTheme
.
text
FontSize
+
2
horizontalAlignment
:
Text
.
AlignLeft
verticalAlignment
:
Text
.
AlignVCenter
text
:
textMetricsuserAliasLabel
.
elidedText
}
TextMetrics
{
id
:
textMetricsuserAliasLabel
font
:
userAliasLabel
.
font
text
:
userAliasLabelText
elideWidth
:
userNameOrIdRect
.
width
elide
:
Qt
.
ElideMiddle
maxWidth
:
userNameOrIdRect
.
width
}
Label
{
ElidedText
Label
{
id
:
userUserNameLabel
visible
:
(
text
!==
""
)
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
Layout.preferredWidth
:
userNameOrIdRect
.
width
Layout.preferredHeight
:
textMetricsuserUserNameLabel
.
boundingRect
.
height
Layout.bottomMargin
:
10
visible
:
text
!==
""
font.pointSize
:
JamiTheme
.
textFontSize
color
:
JamiTheme
.
faddedLastInteractionFontColor
horizontalAlignment
:
Text
.
AlignLeft
verticalAlignment
:
Text
.
AlignVCenter
text
:
textMetricsuserUserNameLabel
.
elidedText
}
TextMetrics
{
id
:
textMetricsuserUserNameLabel
font
:
userUserNameLabel
.
font
text
:
userUserNameLabelText
elideWidth
:
userNameOrIdRect
.
width
elide
:
Qt
.
ElideMiddle
maxWidth
:
userNameOrIdRect
.
width
}
}
}
...
...
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