mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-22 15:54:00 +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
|
visible: listViewBackground.visible
|
||||||
layer.mipmap: false
|
layer.mipmap: false
|
||||||
clip: true
|
clip: true
|
||||||
|
maximumFlickVelocity: 1024
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollIndicator.vertical: ScrollIndicator {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,7 @@ ListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
maximumFlickVelocity: 1024
|
||||||
|
|
||||||
delegate: ConversationSmartListViewItemDelegate {
|
delegate: ConversationSmartListViewItemDelegate {
|
||||||
id: smartListItemDelegate
|
id: smartListItemDelegate
|
||||||
|
|
|
@ -162,19 +162,17 @@ Rectangle {
|
||||||
onBackArrowClicked: root.settingsBackArrowClicked()
|
onBackArrowClicked: root.settingsBackArrowClicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView {
|
Flickable {
|
||||||
id: settingsViewScrollView
|
id: settingsViewScrollView
|
||||||
|
|
||||||
property ScrollBar vScrollBar: ScrollBar.vertical
|
|
||||||
|
|
||||||
anchors.top: settingsHeader.bottom
|
anchors.top: settingsHeader.bottom
|
||||||
anchors.horizontalCenter: settingsViewRect.horizontalCenter
|
anchors.horizontalCenter: settingsViewRect.horizontalCenter
|
||||||
|
|
||||||
height: settingsViewRect.height - settingsHeader.height
|
height: settingsViewRect.height - settingsHeader.height
|
||||||
width: settingsViewRect.width
|
width: settingsViewRect.width
|
||||||
|
|
||||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
maximumFlickVelocity: 1024
|
||||||
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
ScrollIndicator.vertical: ScrollIndicator {}
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: rightSettingsStackLayout.height
|
contentHeight: rightSettingsStackLayout.height
|
||||||
|
@ -231,10 +229,9 @@ Rectangle {
|
||||||
|
|
||||||
onAdvancedSettingsToggled: {
|
onAdvancedSettingsToggled: {
|
||||||
if (settingsVisible)
|
if (settingsVisible)
|
||||||
settingsViewScrollView.vScrollBar.position =
|
settingsViewScrollView.contentY = getAdvancedSettingsScrollPosition()
|
||||||
getAdvancedSettingsScrollPosition()
|
|
||||||
else
|
else
|
||||||
settingsViewScrollView.vScrollBar.position = 0
|
settingsViewScrollView.contentY = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAdvancedSettingsScrollPosition() {
|
function getAdvancedSettingsScrollPosition() {
|
||||||
return advancedSettings.y / root.height
|
return advancedSettings.y
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPasswordButtonText() {
|
function setPasswordButtonText() {
|
||||||
|
|
|
@ -276,6 +276,7 @@ Rectangle {
|
||||||
|
|
||||||
model: PluginAdapter.getPluginPreferencesModel(root.pluginId, root.category)
|
model: PluginAdapter.getPluginPreferencesModel(root.pluginId, root.category)
|
||||||
interactive: false
|
interactive: false
|
||||||
|
maximumFlickVelocity: 1024
|
||||||
|
|
||||||
delegate: PreferenceItemDelegate {
|
delegate: PreferenceItemDelegate {
|
||||||
id: preferenceItemDelegateCategory
|
id: preferenceItemDelegateCategory
|
||||||
|
@ -325,6 +326,7 @@ Rectangle {
|
||||||
|
|
||||||
model: PluginAdapter.getPluginPreferencesModel(root.pluginId)
|
model: PluginAdapter.getPluginPreferencesModel(root.pluginId)
|
||||||
interactive: false
|
interactive: false
|
||||||
|
maximumFlickVelocity: 1024
|
||||||
|
|
||||||
delegate: PreferenceItemDelegate {
|
delegate: PreferenceItemDelegate {
|
||||||
id: preferenceItemDelegate
|
id: preferenceItemDelegate
|
||||||
|
|
|
@ -124,6 +124,7 @@ Rectangle {
|
||||||
Layout.bottomMargin: 10
|
Layout.bottomMargin: 10
|
||||||
|
|
||||||
model: PluginAdapter.getPluginSelectableModel()
|
model: PluginAdapter.getPluginSelectableModel()
|
||||||
|
maximumFlickVelocity: 1024
|
||||||
|
|
||||||
delegate: PluginItemDelegate {
|
delegate: PluginItemDelegate {
|
||||||
id: pluginItemDelegate
|
id: pluginItemDelegate
|
||||||
|
|
Loading…
Add table
Reference in a new issue