mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-21 07:05:59 +02:00
misc: use ScrollBar instead of ScrollIndicator for scroll areas
Interactive scroll areas with long lists should have a scroll bar to grab in order to accelerate the scroll process. Gitlab: #457 Change-Id: I24fe7d4f4f3cdda13432a6ac713bbe5bee5132f7
This commit is contained in:
parent
ba61d924fc
commit
ce22cbbabe
9 changed files with 10 additions and 10 deletions
|
@ -46,6 +46,6 @@ Rectangle {
|
||||||
clip: true
|
clip: true
|
||||||
maximumFlickVelocity: 1024
|
maximumFlickVelocity: 1024
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ ComboBox {
|
||||||
model: root.delegateModel
|
model: root.delegateModel
|
||||||
currentIndex: root.highlightedIndex
|
currentIndex: root.highlightedIndex
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator { }
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
|
@ -67,7 +67,7 @@ Popup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
|
|
||||||
// fake footer item as workaround for Qt 5.15 bug
|
// fake footer item as workaround for Qt 5.15 bug
|
||||||
|
|
|
@ -461,7 +461,7 @@ Control {
|
||||||
null
|
null
|
||||||
|
|
||||||
delegate: buttonDelegate
|
delegate: buttonDelegate
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
|
|
||||||
add: Transition {
|
add: Transition {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
@ -491,7 +491,7 @@ Control {
|
||||||
overflowButton.delegateModel :
|
overflowButton.delegateModel :
|
||||||
null
|
null
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
|
@ -254,7 +254,7 @@ ItemDelegate {
|
||||||
implicitWidth: menuItemWidth
|
implicitWidth: menuItemWidth
|
||||||
implicitHeight: Math.min(contentHeight, menuItemHeight * 6) + 24
|
implicitHeight: Math.min(contentHeight, menuItemHeight * 6) + 24
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ ListView {
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
maximumFlickVelocity: 1024
|
maximumFlickVelocity: 1024
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
|
|
||||||
// highlight selection
|
// highlight selection
|
||||||
// down and hover states are done within the delegate
|
// down and hover states are done within the delegate
|
||||||
|
|
|
@ -56,5 +56,5 @@ ListView {
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
maximumFlickVelocity: 1024
|
maximumFlickVelocity: 1024
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,7 +170,7 @@ Popup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ Rectangle {
|
||||||
width: settingsViewRect.width
|
width: settingsViewRect.width
|
||||||
|
|
||||||
maximumFlickVelocity: 1024
|
maximumFlickVelocity: 1024
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollBar.vertical: ScrollBar { }
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: rightSettingsStackLayout.height
|
contentHeight: rightSettingsStackLayout.height
|
||||||
|
|
Loading…
Add table
Reference in a new issue