]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1368: Creation of a Qt panel. Comment SamplePanelPlugin feature
authornds <nds@opencascade.com>
Wed, 30 Mar 2016 08:54:24 +0000 (11:54 +0300)
committernds <nds@opencascade.com>
Wed, 30 Mar 2016 11:25:47 +0000 (14:25 +0300)
src/Config/plugins.xml.in
src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.cpp
src/SamplePanelPlugin/plugin-SamplePanel.xml

index af91d8fb24884a459e4b5c4d0372491b52f2233a..328bb5fff1ac2c4bc2aed71dcf5fce1effcc959d 100644 (file)
@@ -17,4 +17,7 @@
 -->
   <plugin library="GeomValidators"/>
   <plugin library="DFBrowser" internal="true"/>
+<!--
+  <plugin library="SamplePanelPlugin" configuration="plugin-SamplePanel.xml"/>
+-->
 </plugins>
index 293f8918f314e64813dd8818a5a485a910fbb4f7..9389905cefbd2469a5d7826fd3c4357b880c2cef 100755 (executable)
@@ -11,7 +11,7 @@
 SamplePanelPlugin_WidgetCreator::SamplePanelPlugin_WidgetCreator()
 : ModuleBase_IWidgetCreator()
 {
-  myPanelTypes.insert("SampePanel");
+  myPanelTypes.insert("QtPanel");
 }
 
 void SamplePanelPlugin_WidgetCreator::panelTypes(std::set<std::string>& theTypes)
@@ -26,7 +26,7 @@ QWidget* SamplePanelPlugin_WidgetCreator::createPanelByType(const std::string& t
   if (myPanelTypes.find(theType) == myPanelTypes.end())
     return aWidget;
 
-  if (theType == "SampePanel") {
+  if (theType == "QtPanel") {
     aWidget = new SamplePanelPlugin_Panel(theParent);
   }
 
index fdcdb444c7b4b9007a404722f1433fa89b5a376a..9f017f59afd1d68976bc2703c2d5a7cfe94fc0cd 100755 (executable)
@@ -3,7 +3,7 @@
 <plugin>
   <workbench id="Sample">
     <group id="Features">
-      <feature id="SamplePanelFeature" property_panel_id="SampePanel" title="Sample Panel Feature"/>
+      <feature id="QtPanelFeature" property_panel_id="SamplePanel" title="Qt Panel Feature"/>
     </group>
   </workbench>
 </plugin>