1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-14 12:35:23 +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:
Andreas Traczyk 2021-06-15 13:46:11 -04:00 committed by Ming Rui Zhang
parent ba61d924fc
commit ce22cbbabe
9 changed files with 10 additions and 10 deletions

View file

@ -46,6 +46,6 @@ Rectangle {
clip: true
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
}
}

View file

@ -122,7 +122,7 @@ ComboBox {
model: root.delegateModel
currentIndex: root.highlightedIndex
ScrollIndicator.vertical: ScrollIndicator { }
ScrollBar.vertical: ScrollBar { }
}
background: Rectangle {

View file

@ -67,7 +67,7 @@ Popup {
}
}
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
}
// fake footer item as workaround for Qt 5.15 bug

View file

@ -461,7 +461,7 @@ Control {
null
delegate: buttonDelegate
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
add: Transition {
NumberAnimation {
@ -491,7 +491,7 @@ Control {
overflowButton.delegateModel :
null
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
}
background: Rectangle {

View file

@ -254,7 +254,7 @@ ItemDelegate {
implicitWidth: menuItemWidth
implicitHeight: Math.min(contentHeight, menuItemHeight * 6) + 24
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
clip: true

View file

@ -38,7 +38,7 @@ ListView {
clip: true
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
// highlight selection
// down and hover states are done within the delegate

View file

@ -56,5 +56,5 @@ ListView {
clip: true
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
}

View file

@ -170,7 +170,7 @@ Popup {
}
}
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
}
}
}

View file

@ -172,7 +172,7 @@ Rectangle {
width: settingsViewRect.width
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
ScrollBar.vertical: ScrollBar { }
clip: true
contentHeight: rightSettingsStackLayout.height