Salome HOME
Fix editor creation
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 30 Dec 2016 10:05:08 +0000 (13:05 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 30 Dec 2016 10:05:08 +0000 (13:05 +0300)
src/CollectionPlugin/CollectionPlugin_WidgetField.cpp

index c3495b7ee447c90a8edad42d8830d06d1042ba9d..bdb55bdf3b549f63af391edc6403a8ef12e5d624 100644 (file)
@@ -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;
 }