From f4631800f105b3775624451085f22aaa6869963b Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Mon, 28 Mar 2011 16:32:28 +0200 Subject: [PATCH] ENH: improve QtWidgetParameterFactory --- CMakeLists.txt | 1 + .../otbWrapperQtWidgetParameterFactory.cxx | 15 +++++++++++++++ .../QtWidget/otbWrapperQtWidgetParameterFactory.h | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ee581499b..6785930c56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,7 @@ IF(OTB_USE_QT) FIND_PACKAGE(Qt4 REQUIRED) SET(QT_USE_QTXML 1) INCLUDE(${QT_USE_FILE}) + INCLUDE_DIRECTORIES(${QT_INCLUDE_DIRS}) ENDIF(OTB_USE_QT) diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.cxx index 3c9518e267..4acaad2828 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.cxx @@ -33,6 +33,21 @@ QtWidgetParameterFactory::~QtWidgetParameterFactory() } +void +QtWidgetParameterFactory::RegisterBuiltInFactories() +{ + +} + +QWidget* +QtWidgetParameterFactory::CreateQtWidget( Parameter* param ) +{ + + + + return 0; +} + } } diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.h b/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.h index faba80623a..15302cae0c 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.h +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetParameterFactory.h @@ -49,7 +49,7 @@ public: protected: QtWidgetParameterFactory(); - ~QtWidgetParameterFactory(); + virtual ~QtWidgetParameterFactory(); private: QtWidgetParameterFactory(const Self&); //purposely not implemented -- GitLab