QmlProfiler: Draw time marks only in visible area

The vertical Flickable element can get very large if certain
categories are expanded. If the time marks have to fill the whole
element the underlying buffers holding the pixmaps and/or OpenGL
data may overflow.

Task-number: QTCREATORBUG-10420

Change-Id: I45952e8237bb827a963e0e4e8deb060646c0c8f4
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2013-11-08 18:06:13 +01:00
parent 20142d962a
commit 35a9015dea
2 changed files with 26 additions and 14 deletions

View File

@@ -349,10 +349,10 @@ Rectangle {
// ***** child items
TimeMarks {
id: backgroundMarks
y: labels.y
height: flick.height
y: vertflick.contentY
height: vertflick.height
width: flick.width
anchors.left: flick.left
anchors.right: flick.right
}
Flickable {