forked from qt-creator/qt-creator
QmlProfiler: Provide a vertical scroll bar for the timeline view.
The timeline can be vertically navigated by flicking, which is not very appropriate for desktop applications. This change provides a scroll bar and mouse wheel scrolling in addition to that. Also it makes the vertical movement stop at the boundaries. The mouse wheel would exhibit unintuitive behavior without it. Change-Id: I5ef126525e452f46aa0a483a544345b8f618d829 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -307,6 +307,11 @@ Rectangle {
|
|||||||
height: root.height
|
height: root.height
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: labels.height
|
contentHeight: labels.height
|
||||||
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
|
// ScrollView will try to deinteractivate it. We don't want that
|
||||||
|
// as the horizontal flickable is interactive, too.
|
||||||
|
onInteractiveChanged: interactive = true
|
||||||
|
|
||||||
// ***** child items
|
// ***** child items
|
||||||
TimeMarks {
|
TimeMarks {
|
||||||
@@ -501,6 +506,11 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScrollView {
|
||||||
|
contentItem: vertflick
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
|
|
||||||
SelectionRangeDetails {
|
SelectionRangeDetails {
|
||||||
id: selectionRangeDetails
|
id: selectionRangeDetails
|
||||||
visible: root.selectionRangeMode
|
visible: root.selectionRangeMode
|
||||||
|
|||||||
Reference in New Issue
Block a user