From e3b6d828147329f90684e3f6ae67ce1412ef3ddf Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Thu, 23 Feb 2017 10:25:59 +0100 Subject: [PATCH] Move top-view properties to .ui file, enable alternating row colors --- src/analyze/gui/mainwindow.cpp | 2 -- src/analyze/gui/mainwindow.ui | 45 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/src/analyze/gui/mainwindow.cpp b/src/analyze/gui/mainwindow.cpp index 0a3dea6..4f8106c 100644 --- a/src/analyze/gui/mainwindow.cpp +++ b/src/analyze/gui/mainwindow.cpp @@ -99,8 +99,6 @@ void setupTopView(TreeModel* source, QTreeView* view, TopProxy::Type type) 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); diff --git a/src/analyze/gui/mainwindow.ui b/src/analyze/gui/mainwindow.ui index e367cb6..a7dd7b9 100644 --- a/src/analyze/gui/mainwindow.ui +++ b/src/analyze/gui/mainwindow.ui @@ -329,6 +329,15 @@ List of functions that allocated the most memory at a given time. + + true + + + false + + + true + @@ -359,6 +368,15 @@ List of functions that leak the most memory. + + true + + + false + + + true + @@ -389,6 +407,15 @@ List of functions that allocate memory most often. + + true + + + false + + + true + @@ -419,6 +446,15 @@ List of functions that produced the most temporary memory allocations. + + true + + + false + + + true + @@ -449,6 +485,15 @@ List of functions that allocated the most memory overall, ignoring deallocations. + + true + + + false + + + true + -- 2.7.4