SamplePanelPlugin_WidgetCreator::SamplePanelPlugin_WidgetCreator()
: ModuleBase_IWidgetCreator()
{
- myPanelTypes.insert("SampePanel");
+ myPanelTypes.insert("QtPanel");
}
void SamplePanelPlugin_WidgetCreator::panelTypes(std::set<std::string>& theTypes)
}
QWidget* SamplePanelPlugin_WidgetCreator::createPanelByType(const std::string& theType,
- QWidget* theParent)
+ QWidget* theParent,
+ const FeaturePtr& theFeature)
{
QWidget* aWidget = 0;
if (myPanelTypes.find(theType) == myPanelTypes.end())
return aWidget;
- if (theType == "SampePanel") {
- aWidget = new SamplePanelPlugin_Panel(theParent);
+ if (theType == "QtPanel") {
+ SamplePanelPlugin_Panel* aPanel = new SamplePanelPlugin_Panel(theParent);
+ aPanel->setFeature(theFeature);
+ aWidget = aPanel;
}
return aWidget;