[opengtl-commits] [616] fix regneration of the widget

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 616
Author:   cyrille
Date:     2009-03-14 11:11:13 +0100 (Sat, 14 Mar 2009)

Log Message:
-----------
fix regneration of the widget

Modified Paths:
--------------
    trunk/libQtGTL/QtShiva/CMakeLists.txt
    trunk/libQtGTL/QtShiva/KernelParametersWidget.cpp


Modified: trunk/libQtGTL/QtShiva/CMakeLists.txt
===================================================================
--- trunk/libQtGTL/QtShiva/CMakeLists.txt	2009-03-14 10:09:20 UTC (rev 615)
+++ trunk/libQtGTL/QtShiva/CMakeLists.txt	2009-03-14 10:11:13 UTC (rev 616)
@@ -27,7 +27,7 @@
 target_link_libraries( QtShiva ${QT_QTGUI_LIBRARY} ${OPENSHIVA_LIBRARIES} )
 
 install(TARGETS QtShiva DESTINATION ${LIB_INSTALL_DIR} )
-install( FILES ParametersWidget.h DESTINATION ${INCLUDE_INSTALL_DIR}/QtShiva )
+install( FILES ParametersWidgetBase.h KernelParametersWidget.h SourceParametersWidget.h DESTINATION ${INCLUDE_INSTALL_DIR}/QtShiva )
 
 # Set the ABI version of the library
 set_target_properties(QtShiva PROPERTIES VERSION ${QTSHIVA_LIB_VERSION} SOVERSION ${QTSHIVA_LIB_SOVERSION} )

Modified: trunk/libQtGTL/QtShiva/KernelParametersWidget.cpp
===================================================================
--- trunk/libQtGTL/QtShiva/KernelParametersWidget.cpp	2009-03-14 10:09:20 UTC (rev 615)
+++ trunk/libQtGTL/QtShiva/KernelParametersWidget.cpp	2009-03-14 10:11:13 UTC (rev 616)
@@ -56,12 +56,12 @@
 void KernelParametersWidget::KernelParametrisation::setParameter( const GTLCore::String& _name, GTLCore::Value _value)
 {
   m_kernel->setParameter(_name, _value);
-  p->regenerateWidget();
 }
 
 void KernelParametersWidget::KernelParametrisation::setKernel( OpenShiva::Kernel* _kernel )
 {
   m_kernel = _kernel;
+  p->regenerateWidget();
 }
 
 struct KernelParametersWidget::Private {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/