forked from qt-creator/qt-creator
Utils: Make TreeViews use setUniformRowHeights by default
When applicable, the flag makes a significant difference in performacnce. However is easily forgotten in cases where it is applicable, and cases where it is accidentally used are easily spotted visually. So arguably, opt-out is a better default than opt-in. Change-Id: I88aeb05b42533ba4e23c39573a3ddd016343cd55 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -118,6 +118,7 @@ void Quick3DFrameView::onVisibleFeaturesChanged(quint64)
|
||||
Quick3DMainView::Quick3DMainView(Quick3DFrameModel *model, bool compareView, QWidget *parent)
|
||||
: Utils::TreeView(parent), m_model(model), m_compareView(compareView)
|
||||
{
|
||||
setUniformRowHeights(false);
|
||||
setObjectName("Quick3DMainView");
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
QHeaderView *h = header();
|
||||
|
||||
Reference in New Issue
Block a user