From: vsv Date: Fri, 30 Dec 2016 10:05:08 +0000 (+0300) Subject: Fix editor creation X-Git-Tag: V_2.7.0~351^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ad9fef3d46416ae3e852aa4bd5816598f21b1de;p=modules%2Fshaper.git Fix editor creation --- diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index c3495b7ee..bdb55bdf3 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -84,11 +84,13 @@ QWidget* DataTableItemDelegate::createEditor(QWidget* theParent, aBox->addItem(MYTrue); aEditor = aBox; } + break; + default: + aEditor = QStyledItemDelegate::createEditor(theParent, theOption, theIndex); } } - aEditor = QStyledItemDelegate::createEditor(theParent, theOption, theIndex); - //QObject* aThat = (QObject*) this; - //aEditor->installEventFilter(aThat); + QObject* aThat = (QObject*) this; + aEditor->installEventFilter(aThat); return aEditor; }