Remove non-functional tracking of profiler root's vertical scroll

Vertical scrolling doesn't work at the moment and has to be implemented
in a different way. Besides, the code tracking the root's vertical
scroll hasn't done anything useful in a long time.

Change-Id: If2add3874cba971bbaace2c22fbf1b2bf0b463b7
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
This commit is contained in:
Ulf Hermann
2013-11-08 18:32:02 +01:00
parent e5a65d58bf
commit d3e0ad9429
5 changed files with 13 additions and 52 deletions

View File

@@ -35,8 +35,6 @@ Rectangle {
// ***** properties
property int scrollY: 0
property int singleRowHeight: 30
property bool dataAvailable: true
@@ -64,7 +62,6 @@ Rectangle {
property real selectionRangeEnd: selectionRange.startTime + selectionRange.duration
signal changeToolTip(string text)
signal updateVerticalScroll(int newPosition)
property bool recordingEnabled: false
property bool appKilled : false
@@ -458,18 +455,6 @@ Rectangle {
zoomControl.setRange(from, from + windowLength);
}
// center view (vertically)
var itemY = view.getYPosition(selectedModel, selectedItem);
if (itemY < root.scrollY) {
root.updateVerticalScroll(itemY);
} else
if (itemY + root.singleRowHeight >
root.scrollY + root.height) {
root.updateVerticalScroll(itemY + root.singleRowHeight -
root.height);
}
} else {
root.hideRangeDetails();
}
@@ -585,7 +570,7 @@ Rectangle {
}
Rectangle {
y: root.scrollY + root.height - height
y: root.height - height
height: 6
width: root.width
x: 0