mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-07 18:43:34 +02:00
SelectScreen: use Scrollview
GitLab: #601 Change-Id: Ie8afca9f1eaacb36c73d5ac32d975ad448e23742
This commit is contained in:
parent
89f3704109
commit
2f1b8bc2d0
1 changed files with 7 additions and 16 deletions
|
@ -42,6 +42,8 @@ Window {
|
||||||
property string currentPreview: ""
|
property string currentPreview: ""
|
||||||
property var screens: []
|
property var screens: []
|
||||||
|
|
||||||
|
title: JamiStrings.selectScreen
|
||||||
|
|
||||||
// How many rows the ScrollView should have.
|
// How many rows the ScrollView should have.
|
||||||
function calculateRepeaterModel() {
|
function calculateRepeaterModel() {
|
||||||
screens = []
|
screens = []
|
||||||
|
@ -51,7 +53,7 @@ Window {
|
||||||
AvAdapter.getListWindows()
|
AvAdapter.getListWindows()
|
||||||
for (var idx in AvAdapter.windowsNames) {
|
for (var idx in AvAdapter.windowsNames) {
|
||||||
screens.push(AvAdapter.windowsNames[idx])
|
screens.push(AvAdapter.windowsNames[idx])
|
||||||
}
|
}
|
||||||
|
|
||||||
return screens.length
|
return screens.length
|
||||||
}
|
}
|
||||||
|
@ -83,20 +85,7 @@ Window {
|
||||||
|
|
||||||
color: JamiTheme.backgroundColor
|
color: JamiTheme.backgroundColor
|
||||||
|
|
||||||
Text {
|
ScrollView {
|
||||||
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 {
|
|
||||||
id: screenSelectionScrollView
|
id: screenSelectionScrollView
|
||||||
|
|
||||||
anchors.topMargin: JamiTheme.preferredMarginSize
|
anchors.topMargin: JamiTheme.preferredMarginSize
|
||||||
|
@ -106,7 +95,9 @@ Window {
|
||||||
height: selectScreenWindowRect.height -
|
height: selectScreenWindowRect.height -
|
||||||
(selectButton.height + JamiTheme.preferredMarginSize * 4)
|
(selectButton.height + JamiTheme.preferredMarginSize * 4)
|
||||||
|
|
||||||
contentHeight: screenSelectionScrollViewColumn.implicitHeight
|
clip: true
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
|
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
||||||
|
|
||||||
Flow {
|
Flow {
|
||||||
id: screenSelectionScrollViewFlow
|
id: screenSelectionScrollViewFlow
|
||||||
|
|
Loading…
Add table
Reference in a new issue