forked from qt-creator/qt-creator
QmlProfiler: hiding paintevents depending on Qt version
Change-Id: I7f542c8e3abe3eaf8e3221e174f5255a78ceff02 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
committed by
Kai Koehne
parent
1068b288f6
commit
1b49b4df11
@@ -40,17 +40,11 @@ Item {
|
||||
property variant extdescriptions: []
|
||||
property variant eventIds: []
|
||||
|
||||
visible: qmlProfilerModelProxy.categoryDepth(modelIndex, categoryIndex) > 0;
|
||||
|
||||
height: root.singleRowHeight
|
||||
width: 150
|
||||
|
||||
visible: (!qmlProfilerModelProxy.empty) && qmlProfilerModelProxy.categoryDepth(modelIndex,categoryIndex) > 0;
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
modelIndex = qmlProfilerModelProxy.modelIndexForCategory(index);
|
||||
categoryIndex = qmlProfilerModelProxy.correctedCategoryIndexForModel(modelIndex, index);
|
||||
}
|
||||
}
|
||||
|
||||
onExpandedChanged: {
|
||||
qmlProfilerModelProxy.setExpanded(modelIndex, categoryIndex, expanded);
|
||||
backgroundMarks.requestRedraw();
|
||||
@@ -67,6 +61,10 @@ Item {
|
||||
}
|
||||
|
||||
function getDescriptions() {
|
||||
visible = qmlProfilerModelProxy.categoryDepth(modelIndex, categoryIndex) > 0;
|
||||
if (!visible)
|
||||
return;
|
||||
|
||||
var desc=[];
|
||||
var ids=[];
|
||||
var extdesc=[];
|
||||
|
||||
Reference in New Issue
Block a user