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