Cleanup and fix of property view
This commit is contained in:
parent
1f2aef943e
commit
71ca4f95b8
@ -73,14 +73,13 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net
|
|||||||
treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
|
|
||||||
// Add property view
|
// Add property view
|
||||||
variantManager = new QtVariantPropertyManager();
|
variantManager = new QtVariantPropertyManager(this);
|
||||||
readOnlyManager = new QtVariantPropertyManager(this);
|
readOnlyManager = new QtVariantPropertyManager(this);
|
||||||
groupManager = new QtGroupPropertyManager(this);
|
groupManager = new QtGroupPropertyManager(this);
|
||||||
variantFactory = new QtVariantEditorFactory();
|
variantFactory = new QtVariantEditorFactory(this);
|
||||||
propertyEditor = new QtTreePropertyBrowser();
|
propertyEditor = new QtTreePropertyBrowser(this);
|
||||||
propertyEditor->setFactoryForManager(variantManager, variantFactory);
|
propertyEditor->setFactoryForManager(variantManager, variantFactory);
|
||||||
propertyEditor->setPropertiesWithoutValueMarked(true);
|
propertyEditor->setPropertiesWithoutValueMarked(true);
|
||||||
propertyEditor->setRootIsDecorated(false);
|
|
||||||
|
|
||||||
propertyEditor->show();
|
propertyEditor->show();
|
||||||
|
|
||||||
@ -102,11 +101,6 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net
|
|||||||
|
|
||||||
DesignWidget::~DesignWidget()
|
DesignWidget::~DesignWidget()
|
||||||
{
|
{
|
||||||
delete variantManager;
|
|
||||||
delete readOnlyManager;
|
|
||||||
delete groupManager;
|
|
||||||
delete variantFactory;
|
|
||||||
delete propertyEditor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DesignWidget::newContext(Context *ctx)
|
void DesignWidget::newContext(Context *ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user