30 setObjectName( QStringLiteral(
"mSettingsTreeWidget" ) );
32 QVBoxLayout *mainLayout =
new QVBoxLayout(
this );
33 mainLayout->setContentsMargins( 0, 0, 0, 0 );
37 mTreeView =
new QTreeView(
this );
38 mTreeView->setModel( mTreeModel );
39 mTreeView->setItemDelegate(
new QgsSettingsTreeItemDelegate( qobject_cast<QgsSettingsTreeModel *>( mTreeModel->sourceModel() ), parent ) );
40 mTreeView->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
41 mTreeView->setMinimumWidth( 400 );
42 mTreeView->resizeColumnToContents( 0 );
44 mainLayout->addWidget( mTreeView );