mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-15 04:55:23 +02:00
listviews: fixed max scroll speed
Change-Id: I29633415aa15379743c0a2a8f2274e33b75e3f39 GitLab: #288
This commit is contained in:
parent
12daccb51f
commit
a69943e042
6 changed files with 11 additions and 9 deletions
|
@ -44,6 +44,7 @@ Rectangle {
|
|||
visible: listViewBackground.visible
|
||||
layer.mipmap: false
|
||||
clip: true
|
||||
maximumFlickVelocity: 1024
|
||||
|
||||
ScrollIndicator.vertical: ScrollIndicator {}
|
||||
}
|
||||
|
|
|
@ -89,6 +89,7 @@ ListView {
|
|||
}
|
||||
|
||||
clip: true
|
||||
maximumFlickVelocity: 1024
|
||||
|
||||
delegate: ConversationSmartListViewItemDelegate {
|
||||
id: smartListItemDelegate
|
||||
|
|
|
@ -162,19 +162,17 @@ Rectangle {
|
|||
onBackArrowClicked: root.settingsBackArrowClicked()
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
Flickable {
|
||||
id: settingsViewScrollView
|
||||
|
||||
property ScrollBar vScrollBar: ScrollBar.vertical
|
||||
|
||||
anchors.top: settingsHeader.bottom
|
||||
anchors.horizontalCenter: settingsViewRect.horizontalCenter
|
||||
|
||||
height: settingsViewRect.height - settingsHeader.height
|
||||
width: settingsViewRect.width
|
||||
|
||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||
maximumFlickVelocity: 1024
|
||||
ScrollIndicator.vertical: ScrollIndicator {}
|
||||
|
||||
clip: true
|
||||
contentHeight: rightSettingsStackLayout.height
|
||||
|
@ -231,10 +229,9 @@ Rectangle {
|
|||
|
||||
onAdvancedSettingsToggled: {
|
||||
if (settingsVisible)
|
||||
settingsViewScrollView.vScrollBar.position =
|
||||
getAdvancedSettingsScrollPosition()
|
||||
settingsViewScrollView.contentY = getAdvancedSettingsScrollPosition()
|
||||
else
|
||||
settingsViewScrollView.vScrollBar.position = 0
|
||||
settingsViewScrollView.contentY = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ Rectangle {
|
|||
}
|
||||
|
||||
function getAdvancedSettingsScrollPosition() {
|
||||
return advancedSettings.y / root.height
|
||||
return advancedSettings.y
|
||||
}
|
||||
|
||||
function setPasswordButtonText() {
|
||||
|
|
|
@ -276,6 +276,7 @@ Rectangle {
|
|||
|
||||
model: PluginAdapter.getPluginPreferencesModel(root.pluginId, root.category)
|
||||
interactive: false
|
||||
maximumFlickVelocity: 1024
|
||||
|
||||
delegate: PreferenceItemDelegate {
|
||||
id: preferenceItemDelegateCategory
|
||||
|
@ -325,6 +326,7 @@ Rectangle {
|
|||
|
||||
model: PluginAdapter.getPluginPreferencesModel(root.pluginId)
|
||||
interactive: false
|
||||
maximumFlickVelocity: 1024
|
||||
|
||||
delegate: PreferenceItemDelegate {
|
||||
id: preferenceItemDelegate
|
||||
|
|
|
@ -124,6 +124,7 @@ Rectangle {
|
|||
Layout.bottomMargin: 10
|
||||
|
||||
model: PluginAdapter.getPluginSelectableModel()
|
||||
maximumFlickVelocity: 1024
|
||||
|
||||
delegate: PluginItemDelegate {
|
||||
id: pluginItemDelegate
|
||||
|
|
Loading…
Add table
Reference in a new issue