From 5c815dea19dedcd38333f9df382b6cfcc2d12a1d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 27 Aug 2015 19:11:48 +0200 Subject: [PATCH] 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: Joerg Bornemann --- src/libs/timeline/qml/MainView.qml | 1 - src/libs/timeline/qml/TimeDisplay.qml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/timeline/qml/MainView.qml b/src/libs/timeline/qml/MainView.qml index 522044512bf..44ca3a6ce65 100644 --- a/src/libs/timeline/qml/MainView.qml +++ b/src/libs/timeline/qml/MainView.qml @@ -172,7 +172,6 @@ Rectangle { windowStart: zoomControl.windowStart rangeDuration: zoomControl.rangeDuration contentX: content.contentX - clip: true } ButtonsBar { diff --git a/src/libs/timeline/qml/TimeDisplay.qml b/src/libs/timeline/qml/TimeDisplay.qml index 7200dbd7f39..5c0be4b62dc 100644 --- a/src/libs/timeline/qml/TimeDisplay.qml +++ b/src/libs/timeline/qml/TimeDisplay.qml @@ -151,6 +151,7 @@ Item { width: timeDisplay.pixelsPerSection Rectangle { + visible: column.stableIndex !== 0 || (-row.x < parent.x + x) color: "#CCCCCC" width: 1 anchors.top: parent.top