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
2f1b8bc2
Commit
2f1b8bc2
authored
3 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
SelectScreen: use Scrollview
GitLab:
#601
Change-Id: Ie8afca9f1eaacb36c73d5ac32d975ad448e23742
parent
89f37041
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/SelectScreen.qml
+7
-16
7 additions, 16 deletions
src/mainview/components/SelectScreen.qml
with
7 additions
and
16 deletions
src/mainview/components/SelectScreen.qml
+
7
−
16
View file @
2f1b8bc2
...
...
@@ -42,6 +42,8 @@ Window {
property
string
currentPreview
:
""
property
var
screens
:
[]
title
:
JamiStrings
.
selectScreen
// How many rows the ScrollView should have.
function
calculateRepeaterModel
()
{
screens
=
[]
...
...
@@ -51,7 +53,7 @@ Window {
AvAdapter
.
getListWindows
()
for
(
var
idx
in
AvAdapter
.
windowsNames
)
{
screens
.
push
(
AvAdapter
.
windowsNames
[
idx
])
}
}
return
screens
.
length
}
...
...
@@ -83,20 +85,7 @@ Window {
color
:
JamiTheme
.
backgroundColor
Text
{
id
:
screenListText
anchors.top
:
selectScreenWindowRect
.
top
anchors.topMargin
:
JamiTheme
.
preferredMarginSize
anchors.horizontalCenter
:
selectScreenWindowRect
.
horizontalCenter
font.pointSize
:
JamiTheme
.
textFontSize
+
2
font.bold
:
true
text
:
JamiStrings
.
selectScreen
color
:
JamiTheme
.
textColor
}
JamiFlickable
{
ScrollView
{
id
:
screenSelectionScrollView
anchors.topMargin
:
JamiTheme
.
preferredMarginSize
...
...
@@ -106,7 +95,9 @@ Window {
height
:
selectScreenWindowRect
.
height
-
(
selectButton
.
height
+
JamiTheme
.
preferredMarginSize
*
4
)
contentHeight
:
screenSelectionScrollViewColumn
.
implicitHeight
clip
:
true
ScrollBar.horizontal.policy
:
ScrollBar
.
AlwaysOff
ScrollBar.vertical.policy
:
ScrollBar
.
AlwaysOn
Flow
{
id
:
screenSelectionScrollViewFlow
...
...
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