linphone-desktop/linphone-app/ui/modules/Common/View/ScrollableListView.qml
Julien Wadel 6f4b12c61e Backup
2021-08-01 22:48:17 +02:00

32 lines
876 B
QML

import QtQuick 2.7
import QtQuick.Controls 2.2
import Common 1.0
// =============================================================================
ListView {
id: view
// ---------------------------------------------------------------------------
ScrollBar.vertical: ForceScrollBar {
id: vScrollBar
onPressedChanged: pressed ? view.movementStarted() : view.movementEnded()
visible:view.contentHeight > view.height
}
// ---------------------------------------------------------------------------
boundsBehavior: Flickable.StopAtBounds
clip: true
contentWidth: width - (vScrollBar.visible?vScrollBar.width:0)
spacing: 0
// ---------------------------------------------------------------------------
// TODO: Find a solution at this bug =>
// https://bugreports.qt.io/browse/QTBUG-31573
// https://bugreports.qt.io/browse/QTBUG-49989
}