Commit 5c815dea authored by Ulf Hermann's avatar Ulf Hermann

Timeline: Avoid clip on TimeDisplay

The only thing that needs clipping are the thin vertical lines. We can
manually manage those with the "visible" property. Clipping with the
"clip" property on the parent element can cause costly rebatching for
the whole content while scrolling.

Change-Id: Ia31eeefc4c0a943b00ea47b12c5c9d49b0f004e3
Task-number: QTCREATORBUG-14983
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent 1eafa74b
...@@ -172,7 +172,6 @@ Rectangle { ...@@ -172,7 +172,6 @@ Rectangle {
windowStart: zoomControl.windowStart windowStart: zoomControl.windowStart
rangeDuration: zoomControl.rangeDuration rangeDuration: zoomControl.rangeDuration
contentX: content.contentX contentX: content.contentX
clip: true
} }
ButtonsBar { ButtonsBar {
......
...@@ -151,6 +151,7 @@ Item { ...@@ -151,6 +151,7 @@ Item {
width: timeDisplay.pixelsPerSection width: timeDisplay.pixelsPerSection
Rectangle { Rectangle {
visible: column.stableIndex !== 0 || (-row.x < parent.x + x)
color: "#CCCCCC" color: "#CCCCCC"
width: 1 width: 1
anchors.top: parent.top anchors.top: parent.top
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment