From 3e040ca4c0ec763ad164a8aa81db539ecd57ea68 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 30 Mar 2016 11:54:24 +0300 Subject: [PATCH] Issue #1368: Creation of a Qt panel. Comment SamplePanelPlugin feature --- src/Config/plugins.xml.in | 3 +++ src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.cpp | 4 ++-- src/SamplePanelPlugin/plugin-SamplePanel.xml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Config/plugins.xml.in b/src/Config/plugins.xml.in index af91d8fb2..328bb5fff 100644 --- a/src/Config/plugins.xml.in +++ b/src/Config/plugins.xml.in @@ -17,4 +17,7 @@ --> + diff --git a/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.cpp b/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.cpp index 293f8918f..9389905ce 100755 --- a/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.cpp +++ b/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.cpp @@ -11,7 +11,7 @@ SamplePanelPlugin_WidgetCreator::SamplePanelPlugin_WidgetCreator() : ModuleBase_IWidgetCreator() { - myPanelTypes.insert("SampePanel"); + myPanelTypes.insert("QtPanel"); } void SamplePanelPlugin_WidgetCreator::panelTypes(std::set& 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); } diff --git a/src/SamplePanelPlugin/plugin-SamplePanel.xml b/src/SamplePanelPlugin/plugin-SamplePanel.xml index fdcdb444c..9f017f59a 100755 --- a/src/SamplePanelPlugin/plugin-SamplePanel.xml +++ b/src/SamplePanelPlugin/plugin-SamplePanel.xml @@ -3,7 +3,7 @@ - + -- 2.39.2