##// END OF EJS Templates
added remove method for wrapper factories...
florianlink -
r168:215258552523
parent child
Show More
@@ -1294,6 +1294,16 void PythonQt::clearNotFoundCachedMembers()
1294 }
1294 }
1295 }
1295 }
1296
1296
1297 void PythonQt::removeWrapperFactory( PythonQtCppWrapperFactory* factory )
1298 {
1299 _p->_cppWrapperFactories.removeAll(factory);
1300 }
1301
1302 void PythonQt::removeWrapperFactory( PythonQtForeignWrapperFactory* factory )
1303 {
1304 _p->_foreignWrapperFactories.removeAll(factory);
1305 }
1306
1297 void PythonQtPrivate::removeWrapperPointer(void* obj)
1307 void PythonQtPrivate::removeWrapperPointer(void* obj)
1298 {
1308 {
1299 _wrappedObjects.remove(obj);
1309 _wrappedObjects.remove(obj);
@@ -413,6 +413,12 public:
413 //! add the given factory to PythonQt (ownership stays with caller)
413 //! add the given factory to PythonQt (ownership stays with caller)
414 void addWrapperFactory(PythonQtForeignWrapperFactory* factory);
414 void addWrapperFactory(PythonQtForeignWrapperFactory* factory);
415
415
416 //! remove the wrapper factory
417 void removeWrapperFactory(PythonQtCppWrapperFactory* factory);
418
419 //! remove the wrapper factory
420 void removeWrapperFactory(PythonQtForeignWrapperFactory* factory);
421
416 //@}
422 //@}
417
423
418 //---------------------------------------------------------------------------
424 //---------------------------------------------------------------------------
@@ -42,6 +42,12
42 */
42 */
43 //----------------------------------------------------------------------------------
43 //----------------------------------------------------------------------------------
44
44
45 #include "PythonQtPythonInclude.h"
46
47 #include "PythonQtSystem.h"
48 #include <QObject>
49 #include <QByteArray>
50
45 //! Factory interface for C++ classes that can be wrapped by QObject objects
51 //! Factory interface for C++ classes that can be wrapped by QObject objects
46 /*! To create your own factory, derive PythonQtCppWrapperFactory and implement
52 /*! To create your own factory, derive PythonQtCppWrapperFactory and implement
47 the create() method.
53 the create() method.
General Comments 0
You need to be logged in to leave comments. Login now