- DataPtr aData = theFeature->data();
- AttributeDoublePtr aReal = aData->real(attributeID());
- bool isOk;
- double aValue = myEditor->text().toDouble(&isOk);
- if (isOk && aReal->value() != aValue) {
- //ModuleBase_WidgetPoint2D* that = (ModuleBase_WidgetPoint2D*) this;
- //bool isBlocked = that->blockSignals(true);
- aReal->setValue(aValue);
- Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_FEATURE_UPDATED));
- //that->blockSignals(isBlocked);
- }
- return true;
-}
-
-bool ModuleBase_WidgetEditor::restoreValue(FeaturePtr theFeature)
-{
- boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();
- AttributeDoublePtr aRef = aData->real(attributeID());
+ QDialog aDlg;
+ aDlg.setWindowFlags(Qt::FramelessWindowHint);
+ QHBoxLayout* aLay = new QHBoxLayout(&aDlg);
+ ModuleBase_Tools::zeroMargins(aLay);