forked from qt-creator/qt-creator
QmlProfiler: Provide UI for hiding and showing categories
Change-Id: Ia1e2cd87523d53d4a2d0de9f74980e05c565f8e0 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -250,6 +250,7 @@ Rectangle {
|
||||
width: 150
|
||||
height: 24
|
||||
onZoomControlChanged: zoomSliderToolBar.visible = !zoomSliderToolBar.visible
|
||||
onFilterMenuChanged: filterMenu.visible = !filterMenu.visible
|
||||
onJumpToNext: view.selectNext();
|
||||
onJumpToPrev: view.selectPrev();
|
||||
onRangeSelectChanged: selectionRangeMode = rangeButtonChecked();
|
||||
@@ -437,6 +438,33 @@ Rectangle {
|
||||
id: rangeDetails
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: filterMenu
|
||||
color: "#9b9b9b"
|
||||
enabled: buttonsBar.enabled
|
||||
visible: false
|
||||
width: labels.width
|
||||
anchors.left: parent.left
|
||||
anchors.top: buttonsBar.bottom
|
||||
height: qmlProfilerModelProxy.modelCount() * buttonsBar.height
|
||||
|
||||
Repeater {
|
||||
id: filterMenuInner
|
||||
model: qmlProfilerModelProxy.models
|
||||
CheckBox {
|
||||
anchors.left: filterMenu.left
|
||||
anchors.right: filterMenu.right
|
||||
height: buttonsBar.height
|
||||
y: index * height
|
||||
text: qmlProfilerModelProxy.models[index].displayName
|
||||
enabled: !qmlProfilerModelProxy.models[index].empty
|
||||
checked: enabled && !qmlProfilerModelProxy.models[index].hidden
|
||||
onCheckedChanged: qmlProfilerModelProxy.models[index].hidden = !checked
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: zoomSliderToolBar
|
||||
objectName: "zoomSliderToolBar"
|
||||
@@ -444,7 +472,7 @@ Rectangle {
|
||||
enabled: buttonsBar.enabled
|
||||
visible: false
|
||||
width: labels.width
|
||||
height: 24
|
||||
height: buttonsBar.height
|
||||
anchors.left: parent.left
|
||||
anchors.top: buttonsBar.bottom
|
||||
|
||||
|
||||
Reference in New Issue
Block a user