proxy->setSourceModel(source);
proxy->setSortRole(TreeModel::SortRole);
view->setModel(proxy);
- view->setRootIsDecorated(false);
- view->setUniformRowHeights(true);
view->sortByColumn(0);
view->header()->setStretchLastSection(true);
addContextMenu(view, TreeModel::LocationRole);
<property name="toolTip">
<string>List of functions that allocated the most memory at a given time.</string>
</property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="rootIsDecorated">
+ <bool>false</bool>
+ </property>
+ <property name="uniformRowHeights">
+ <bool>true</bool>
+ </property>
</widget>
</item>
</layout>
<property name="toolTip">
<string>List of functions that leak the most memory.</string>
</property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="rootIsDecorated">
+ <bool>false</bool>
+ </property>
+ <property name="uniformRowHeights">
+ <bool>true</bool>
+ </property>
</widget>
</item>
</layout>
<property name="toolTip">
<string>List of functions that allocate memory most often.</string>
</property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="rootIsDecorated">
+ <bool>false</bool>
+ </property>
+ <property name="uniformRowHeights">
+ <bool>true</bool>
+ </property>
</widget>
</item>
</layout>
<property name="toolTip">
<string>List of functions that produced the most temporary memory allocations.</string>
</property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="rootIsDecorated">
+ <bool>false</bool>
+ </property>
+ <property name="uniformRowHeights">
+ <bool>true</bool>
+ </property>
</widget>
</item>
</layout>
<property name="toolTip">
<string>List of functions that allocated the most memory overall, ignoring deallocations.</string>
</property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="rootIsDecorated">
+ <bool>false</bool>
+ </property>
+ <property name="uniformRowHeights">
+ <bool>true</bool>
+ </property>
</widget>
</item>
</layout>