forked from qt-creator/qt-creator
Timeline: Show the "preview" only when the trace duration is invalid
The height of the trace is not sufficient to determine this as by hiding categories it can be reduced to 0 without the trace being empty. Change-Id: Ic8100b4da9c93808a6d49cf4ceba12de391ebc0e Task-number: QTCREATORBUG-14277 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -190,7 +190,7 @@ Rectangle {
|
||||
|
||||
ButtonsBar {
|
||||
id: buttonsBar
|
||||
enabled: timelineModelAggregator.height > 0
|
||||
enabled: zoomControl.traceDuration > 0
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
width: 150
|
||||
|
@@ -79,8 +79,8 @@ Flickable {
|
||||
id: loader
|
||||
asynchronous: y < categories.contentY + categories.height &&
|
||||
y + height > categories.contentY
|
||||
active: modelData !== null &&
|
||||
(modelProxy.height === 0 || (!modelData.hidden && !modelData.empty))
|
||||
active: modelData !== null && zoomer !== null &&
|
||||
(zoomer.traceDuration <= 0 || (!modelData.hidden && !modelData.empty))
|
||||
height: active ? Math.max(modelData.height, modelData.defaultRowHeight) : 0
|
||||
width: categories.width
|
||||
property int visualIndex: DelegateModel.itemsIndex
|
||||
|
Reference in New Issue
Block a user