aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-06 08:15:39 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-06 08:15:39 +0200
commit71ca4f95b80f6dd769e7924b22aa1682486ebb89 (patch)
treec9e5fb2c9f2a968da94a795f20c1d3c222162c22 /gui
parent1f2aef943e4bc9f6501711a61b149a4b34515721 (diff)
downloadnextpnr-71ca4f95b80f6dd769e7924b22aa1682486ebb89.tar.gz
nextpnr-71ca4f95b80f6dd769e7924b22aa1682486ebb89.tar.bz2
nextpnr-71ca4f95b80f6dd769e7924b22aa1682486ebb89.zip
Cleanup and fix of property view
Diffstat (limited to 'gui')
-rw-r--r--gui/designwidget.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index 181db8a5..351bed08 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -73,14 +73,13 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net
treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
// Add property view
- variantManager = new QtVariantPropertyManager();
+ variantManager = new QtVariantPropertyManager(this);
readOnlyManager = new QtVariantPropertyManager(this);
groupManager = new QtGroupPropertyManager(this);
- variantFactory = new QtVariantEditorFactory();
- propertyEditor = new QtTreePropertyBrowser();
+ variantFactory = new QtVariantEditorFactory(this);
+ propertyEditor = new QtTreePropertyBrowser(this);
propertyEditor->setFactoryForManager(variantManager, variantFactory);
propertyEditor->setPropertiesWithoutValueMarked(true);
- propertyEditor->setRootIsDecorated(false);
propertyEditor->show();
@@ -102,11 +101,6 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net
DesignWidget::~DesignWidget()
{
- delete variantManager;
- delete readOnlyManager;
- delete groupManager;
- delete variantFactory;
- delete propertyEditor;
}
void DesignWidget::newContext(Context *ctx)