Commit b0e65127 authored by Milian Wolff's avatar Milian Wolff
Browse files

Set uniform row heights on problem reporter tree view

When a project has thousands of problems or warnings, the problem
reporter view could end up taking a very long time to initialize
the view as it had to calculate the total height by iterating over
all rows. By setting uniform row heights, we can optimize this
situation immensely.
parent ab72974e
Pipeline #95734 passed with stage
in 34 minutes and 27 seconds
......@@ -94,6 +94,7 @@ ProblemTreeView::ProblemTreeView(QWidget* parent, QAbstractItemModel* itemModel)
setWhatsThis(i18nc("@info:whatsthis", "Problems"));
setItemDelegate(new ProblemTreeViewItemDelegate(this));
setSelectionBehavior(QAbstractItemView::SelectRows);
setUniformRowHeights(true);
m_proxy->setSortRole(ProblemModel::SeverityRole);
m_proxy->setDynamicSortFilter(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment