Unify flame graph and timeline details windows

They are mostly the same.

Change-Id: I41be570989ecc58cf2ae33f692c89946b55a0e1d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2018-05-03 17:46:42 +02:00
parent f6b791815a
commit def017e5cb
7 changed files with 236 additions and 517 deletions

View File

@@ -265,21 +265,15 @@ ScrollView {
}
}
FlameGraphDetails {
RangeDetails {
id: tooltip
minimumX: 0
maximumX: flickable.width
minimumY: flickable.contentY
maximumY: flickable.contentY + flickable.height
noteReadonly: true
titleBarColor: Theme.color(Theme.Timeline_PanelHeaderColor)
titleBarTextColor: Theme.color(Theme.PanelTextColorLight)
contentColor: Theme.color(Theme.Timeline_PanelBackgroundColor)
contentTextColor: Theme.color(Theme.Timeline_TextColor)
noteTextColor: Theme.color(Theme.Timeline_HighlightColor)
buttonHoveredColor: Theme.color(Theme.FancyToolButtonHoverColor)
buttonSelectedColor: Theme.color(Theme.FancyToolButtonSelectedColor)
borderWidth: 0
property var hoveredNode: null;
@@ -310,7 +304,7 @@ ScrollView {
}
model: currentNode ? currentNode.details() : []
note: currentNode ? currentNode.note() : ""
noteText: currentNode ? currentNode.note() : ""
Connections {
target: root.model